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

Резултати

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

Пребарај: #babydoge

当前筛选 #babydoge清除筛选
Algebra DEX Engine

@cryptoalgebra · Post #2387 · 04.07.2025 г., 15:20

Haven’t spotlighted our first non-EVM DEX in a while 👀 🌱 TONCO — the first CLAMM on TON blockchain — is thriving: 🔁 135K swaps,💸 $801K fees 📈 $285M total vol, $8.2M TVL, 537 weekly traders 🔥 Highlights: – $FDUSD launch w/ farming – #BabyDoge: $600K vol, 335% APR – $STORM farm: 500% APR – $BLUM: 100%+ real yield – $TON / $USDT: 42.5% avg APR – highest on TON All powered by Algebra 💪 Dive in 👉tonco.io

Hashtags

TONlines – News

@tonlines · Post #7226 · 15.05.2025 г., 13:15

⚡️STON.fi Welcomes BabyDoge to Its Platform #BabyDoge#TON STON.fi has announced that on May 19, BabyDoge will be available for trading and liquidity provision on their platform. Launched in 2021, BabyDoge has grown into a robust multi-chain ecosystem featuring elements like BabyDogeSwap and an NFT Marketplace. This move further integrates BabyDoge into the TON ecosystem, appealing to crypto enthusiasts through its community-driven initiatives. Source: link @tonlines

​​#BSC szn is already literally dragging liquidity off the entire market rn 😂 And CZ is increasing the pull by soft shilling his dog Been comfy in $CAKE, $CAT, $BAKE, $CGPT, $ANDY, #BabyDoge while also anticipating CZ’s dog. Open to whatever else makes sense on the chain tho 👇🏽

TONlines – News

@tonlines · Post #7315 · 21.05.2025 г., 17:12

Trading Competition: Baby Doge Coin on xRocket #xRocket#BabyDoge xRocket News announces the listing of Baby Doge Coin on xRocket with a trading competition. Participants trading the $1MBABYDOGE/$TON pair can win a share of the $5,000 prize pool, with the competition running from May 21 to May 28. Baby Doge Coin, a popular meme token on Binance Smart Chain, is now integrated with xRocket’s SocialFi tools. Source: link @tonlines

TONlines – News

@tonlines · Post #7313 · 21.05.2025 г., 16:35

⚡️STON.fi Welcomes BabyDoge Token #BabyDoge#STONfi#TON STON.fi announces the addition of the popular meme token, BabyDoge, to its trading platform. BabyDoge, known for its robust ecosystem featuring BabyDogeSwap and an NFT Marketplace, offers exclusive farming opportunities for users with $10,000 in rewards. Source: link @tonlines