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

Резултати

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

Пребарај: #rez

当前筛选 #rez清除筛选
Coin Sonar

@CoinSonar · Post #243598 · 17.04.2026 г., 10:48

#REZ | Volume spike (USDT PAIR) 319 times the average volume 104.86K USDT traded in 1 min └Selling vol: 98.59K USDT 🔴 Boost score: 1/10 24h Vol: 473.26K USDT (Binance) Price: 0.00406 (+1.8% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243323 · 16.04.2026 г., 21:10

#REZ | Volume spike (USDT PAIR) 74 times the average volume 122.91K USDT traded in 5 min └Buying vol: 75.21K USDT 🟢 Boost score: 4/10 24h Vol: 473.26K USDT (Binance) Price: 0.00434 (+1.8% in 24h)

Hashtags

American Crypto©

@americancryptotrading · Post #27444 · 20.11.2025 г., 15:51

🇺🇸#REZ/USDT is shaping descendingchannel pattern on the 3D chart👨‍💻 Going upside on a bounce📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27440 · 16.11.2025 г., 09:34

🇺🇸#REZ/USDT has shaped the descendingchannel on the 3D timeframe🔍 Accumulate here for the medium term🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27395 · 03.10.2025 г., 09:30

🇺🇸#REZ/USDT is consolidating just below the upperborder of the descendingchannel formation on the daily timeframe🧐 Looking for a breakout🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27308 · 11.07.2025 г., 08:34

🇺🇸#REZ/USDT is climbing above the descendingresistance line on the daily chart🔍 To the moon📈 American Crypto©

Hashtags

Coinlegs Cryptocurrency Signals

@coinlegs · Post #10271 · 02.06.2024 г., 09:19

#REZ🚀🚀+77% I share the altcoins I buy on spot in my Discord channel. You can join my channel by just subscribing coinlegs.com Gain access to both my handpicked signals and the most advanced analysis tools 💪

Hashtags

12
ПретходнаСтраница 1 од 2Следна