TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #401 · 15 дек.

Функция asyncio.wait() это еще один способ вызвать множество асинхронных задач. Она работает в нескольких режимах. 1. Самый простой - ждем завершения всех задач async def main(): tasks = [asyncio.create_task(do_it(i)) for i in range(10)] done, pending = await asyncio.wait( tasks, return_when=asyncio.ALL_COMPLETED ) for task in done: try: print(task.result()) except Exception as e: print(e) Очень похоже на gather, но работает не так. ▫️возвращает не результаты, а два сета с объектами Task у которых можно забрать результат через task.result() если они в списке done ▫️не гарантирует порядок результатов так как оба объекта это set ▫️не выбрасывает исключение когда оно появляется, а сохраняет его в Task. Исключение появится когда попробуете забрать резултьтат. 2. Ждем завершения первой задачи, даже если там ошибка. async def main(): tasks = [asyncio.create_task(do_it(i)) for i in range(3)] done, pending = await asyncio.wait( tasks, return_when=asyncio.FIRST_COMPLETED ) # в done может быть несколько задач! for task in done: try: print(task.result()) except Exception as e: print(f"Fail: {e}") # Оставшиеся задачи в pending, как правило, нужно отменить, иначе они будут продолжать работать for task in pending: task.cancel() В сете done будут таски которые успели завершится, причем как успешно так и нет. 3. До первой ошибки. Тоже самое, но с аргументом FIRST_EXCEPTION done, pending = await asyncio.wait( tasks, return_when=asyncio.FIRST_EXCEPTION ) Функция завершается как только первая задача упадет с ошибкой. Учтите, что в любом случае done вы можете обранужить несколько задач, как с ошибками так и успешные. ↗️ Полный листинг примеров здесь #async

Hashtags

Резултати

Пронајдени 3 слични објави

Пребарај: #techstartups

当前筛选 #techstartups清除筛选
Venture Village Wall 🦄

@venturevillagewall · Post #3951 · 22.01.2025 г., 13:00

Funding Rounds Multitude This January! Significant funding rounds announced recently: - Package.ai: $14M on Jan 21 2025 - AI-driven platform for customer engagement. Link - Kunpeng Gene: $13.65M on Jan 17 2025 - Focus on GMP-compliant scientific instruments. Link - Bivision: $13.52M on Jan 17 2025 - Biomedical technology firm. Link - Kraaft: $13.49M on Jan 21 2025 - Simplifying construction site monitoring. Link - Gravity: $13M on Jan 21 2025 - Carbon accounting and energy management platform. Link - Oshi: $12.50M on Jan 18 2025 - Blockchain ecosystem for anime creators. Link - Green Fusion: $12.46M on Jan 21 2025 - Optimizing boiler rooms for sustainability. Link - mi2-factory: $10.38M on Jan 21 2025 - Ionenimplantationen energy filters. Link - Karmen: $9.34M on Jan 21 2025 - Flexible financing solutions for business growth. Link - Optieum Biotechnologies: $8.51M on Jan 15 2025 - CAR-T cell technology. Link #Funding#AI#Blockchain#Energy#HealthTech#Finance#Sustainability#Biotech#Construction#CustomerEngagement#CarbonAccounting#Innovation#TechStartups#VC

💻 FROM ANCIENT SCRIPTS TO DIGITAL CODE: ETHIOPIA'S TECH TAKEOVER 💻 ከጥንታዊ ጽሑፍ እስከ ዲጂታል ኮድ: የኢትዮጵያ ቴክኖሎጂ መቆጣጠር 🔥 КОГДА 3000-ЛЕТНЯЯ ЦИВИЛИЗАЦИЯ ВСТРЕЧАЕТ SILICON VALLEY! Ethiopian youth aren't just consuming technology - they're CREATING it! 💫 🌟 DIGITAL ETHIOPIA RISING: 🏙️ ADDIS ABABA = AFRICA'S SILICON VALLEY: - Tech hubs sprouting faster than coffee plants - Young developers coding the future of Africa - From ancient Ge'ez script to programming languages! 💡 ETHIOPIAN TECH STARTUPS CHANGING THE GAME: 🚀Ride - Ethiopia's answer to Uber, built for African roads 🚀ZayRide - Local mobility solutions that actually work 🚀Deliver Addis - Food delivery revolutionizing Ethiopian dining 🚀EthSwitch - Fintech making banking accessible to everyone 🚀Gebeya - Training Africa's next generation of developers 🚀iCog Labs - AI and robotics putting Ethiopia on the tech map 📊 THE NUMBERS DON'T LIE: ✨ 50%+ youth population = MASSIVE tech potential ✨ Growing internet penetration = Digital revolution in motion ✨ Government support for tech initiatives = Infrastructure backing innovation ✨ Ancient problem-solving culture + Modern tools = Unstoppable combination 🎯 YOUNG ETHIOPIAN DEVELOPERS SAY: *"Our ancestors built Lalibela without blueprints - we build apps without limits!"* *"ቅድመ አያቶቻችን ላሊበላን ያለ ንድፍ ገንብተዋል - እኛ ያለ ገደብ መተግበሪያዎችን እንገነባለን!"* 🔋 THE DIGITAL SWAG: - Coding in multiple languages (including Amharic interfaces!) - Building solutions for African problems - Connecting rural Ethiopia to global markets - Making ancient wisdom accessible through modern tech 🚀 PLOT TWIST: While Silicon Valley talks about "disruption," Ethiopia has been disrupting expectations for millennia! 💪 THE FUTURE IS BEING WRITTEN: In Ethiopian coffee shops, young developers are coding solutions that will change Africa forever! *From coffee ceremonies to coding ceremonies - the grind never stops* ☕💻 #DigitalEthiopia#የኢትዮጵያቴክኖሎጂ#EthiopianTech#AfricaTech#TechStartups#DigitalRevolution#EthiopianInnovation#TechHub#ኢትዮጵያላይፍ#FutureIsEthiopian

Venture Village Wall 🦄

@venturevillagewall · Post #4029 · 30.01.2025 г., 13:00

From Pet Project to Europe's Top Startup Klarna, founded by three Swedish students in 2005, progressed from an idea into Europe's most valuable startup worth $45.6 billion. Initially losing a school competition, they launched a unique payment service. By offering a secure, easy checkout and features like BNPL, Klarna solved key challenges for sellers and buyers. Despite major fluctuations in valuation, they are now preparing for their IPO. This journey emphasizes resilience in entrepreneurship and the complexities of attracting investments. Read more here. #Klarna#Startup#Europe#FinTech#Payments#BNPL#IPO#Entrepreneurship#Investment#TechInnovation#BusinessGrowth#E-commerce #Sweden#Funding#BusinessModel#TechStartups#FinancialServices#OnlinePayments#Disruption#VentureCapital#AI#Crypto