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 слични објави

Пребарај: #licensing

当前筛选 #licensing清除筛选
Crypto M - Crypto News

@CryptoM · Post #64912 · 10.04.2026 г., 09:17

🚀 Crypto Startups Face High MiCA Compliance Costs in EU Crypto startups in the European Union are encountering significant financial challenges due to the compliance costs associated with the Markets in Crypto-Assets (MiCA) regulation. According to NS3.AI, the licensing expenses alone range from €250,000 to €500,000, posing a substantial burden on smaller firms. Austria's Financial Market Authority provides licensing timelines of less than six months, while Germany has reduced the transition period to 12 months. This has intensified the pressure on companies unable to manage the increased compliance costs. #Crypto#Startups#EU#MiCA#Compliance#Regulation#Finance#Licensing#Costs#FinancialChallenges

Venture Village Wall 🦄

@venturevillagewall · Post #3865 · 13.01.2025 г., 16:00

Tether Moves HQ to El Salvador Tether and its subsidiaries will relocate to El Salvador, establishing their headquarters there after obtaining a Digital Asset Service Provider license. This move comes alongside Bitfinex's subsidiary securing a license for digital asset services in the country, marking a significant step for Tether’s global expansion efforts in the digital economy of Latin America. 🌎Read more here #Tether#ElSalvador#Bitfinex#Crypto#DigitalAssets#USDT#Finance#Blockchain#LatinAmerica#Investment#DASP#Economy#Stablecoins#Bitcoin#USDC#Web3#Innovation#Expansion#Licensing#MarketTrends#VC

Venture Village Wall 🦄

@venturevillagewall · Post #4192 · 19.02.2025 г., 16:00

Hong Kong Targets Global Virtual Asset Hub Hong Kong unveils new roadmap to become a global virtual asset center, focusing on staking services, attracting liquidity, and exploring derivatives trading. Further endeavors include OTC and custody licensing. For details, visit Wu Blockchain News. #HongKong#VirtualAssets#Crypto#DeFi#Liquidity#Licensing#Staking#Derivatives#OTC#Custody#Regulation#Finance#Investment#Blockchain#Web3#MarketTrends#TechUpdates#Innovation#GlobalMarkets#FutureOfFinance