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

TGINSIGHT SIMILAR POSTS

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

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

Отдельно разберём TaskGroup, который пришел на замену gather в Python 3.11. Ключевые отличия ▫️create_task() возвращает объект asyncio.Task, у которого есть соответствюущие методы управления. То есть у нас больше контроля ▫️это контекстный менеджер, который гарантирует что все таски будут остановлены по выходу из контекста ▫️ошибка автоматически отменяет незавершенные задачи, ▫️except* передает нам ExceptionGroup, в котором каждую ошибку можно обработать отдельно import asyncio import random async def do_it() -> str: if random.random() < 0.1: raise ValueError('Oops') delay = random.uniform(0.5, 1.5) await asyncio.sleep(delay) return delay async def main(): try: async with asyncio.TaskGroup() as tg: for _ in range(10): tasks.append(tg.create_task(do_it())) for t in tasks: print(t.result()) except *ValueError as e: for err in e.exceptions: print(err) asyncio.run(main()) Рекомендую изучить страницу Coroutines and Tasks из документации, где представлено больше интересных примеров и механизмов - таймауты - отмена задач - создание задач из другого потока #async

Hashtags

Резултати

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

Пребарај: #startupfunding

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

@venturevillagewall · Post #4047 · 01.02.2025 г., 16:00

Funding Round Highlights: January 2025 🔍 Key funding rounds from January 2025: - Omnitron Sensors: $13M for efficient MEMS manufacturing. Learn More - Unwrap.ai: $12M for AI-powered customer feedback analytics. Learn More - Le Fourgon: $8.55M for returnable product transportation. - TeamSec: $7.60M for cloud-based securitization solutions. Learn More - Crowded: $7.50M raised. - Cactos: $7.27M for innovative electricity storage solutions. Learn More - Selta Square: $6.41M for pharmacovigilance AI solutions. Learn More - Medsender: $5M for HIPAA-compliant document automation. Learn More - Univale Transportes: $4.78M raised. - SKUsafe: $4.30M for compliance and nutritional analysis tools. Learn More #AI#Fintech#Regtech#Manufacturing#Healthcare#Energy#SupplyChain#NutritionalAnalysis#Compliance#StartupFunding

Venture Village Wall 🦄

@venturevillagewall · Post #3419 · 18.12.2024 г., 12:11

Tyme Raises $250M Round #Tyme has successfully raised a substantial $250 million in funding, closing the round on December 17, 2024. For more details, visit Tyme's website. #Funding#Tyme#Investment#Capital#Finance#Business#Technology#Startups#FundingRound#VentureCapital #2024 #Growth#Innovation#CapitalRaising#TechNews#Market#Entrepreneurship#StartUpFunding#FinancialServices

Venture Village Wall 🦄

@venturevillagewall · Post #3912 · 18.01.2025 г., 10:00

$51M Raised Across Multiple Startups Ten innovative startups secured funding in January 2025, totaling $51 million. Highlights include: - Merit Systems: $10M for an open-source economy. - Botika: $8M, leading in AI-generated fashion models. - Underdogs: $6.13M, focused on training entrepreneurs. - TrustUp: $5.18M in health tech innovation. - Elcogen: $5M in efficient fuel cell manufacturing. - Convergence Medical Robotics: $5M for medical robotics solutions. - Constelli: $3M in signal processing for defense. - Immunocure Discovery Solutions: $3M in AI drug discovery services. - Naco: $2.58M for nano coatings in fuel cells. - TalentMapper: $2.44M for talent management solutions. Read more: Merit Systems | Botika | Underdogs | TrustUp | Elcogen | Convergence Medical Robotics | Constelli | Immunocure Discovery Solutions | Naco | TalentMapper #StartupFunding#OpenSource#AI#FashionTech#Education#HealthTech#FuelCells#Innovation#SignalProcessing#DrugDiscovery#NanoTech#HydrogenEnergy#MedTech#VC