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

Резултати

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

Пребарај: #fil

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

@CoinSonar · Post #243408 · 17.04.2026 г., 01:50

#FIL | Volume spike (USDT PAIR) 58 times the average volume 258.06K USDT traded in 1 min └Buying vol: 179.20K USDT 🟢 Boost score: 5/10 24h Vol: 6.40M USDT (Binance) Price: 0.984 (-1.4% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28045 · 21.10.2024 г., 13:07

#FIL/USDT analysis : #FIL is currently in an uptrend, consistently making higher highs (HHs) and higher lows (HLs) along the trendline. The price is now retracing towards the 200 EMA, presenting a potential long trade opportunity. The target should be the previous high levels, as the price is anticipated to rise further. TF : 1D Entry : $3.888 Target : $4.662 SL : $3.366

Hashtags

American Crypto©

@americancryptotrading · Post #27613 · 08.05.2026 г., 08:21

🇺🇸#FIL/USDT is approaching the midline of the descendingchannel formation on the 3D chart💁‍♂️ Looking for a rise✈️ American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27570 · 27.03.2026 г., 10:40

🇺🇸#FIL/USDT is printing the descendingchannel formation on the 2W timeframe👨‍💻 A strong rally is approaching🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27525 · 05.02.2026 г., 11:46

🇺🇸#FIL/USDT has found support at the lowerboundary of the descendingchannel formation on the 3D chart👨‍💻 Looking for a leg upward📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27490 · 03.01.2026 г., 11:17

🇺🇸#FIL/USDT is rebounding from the lowerborder of the descendingchannel pattern on the 3D chart👨‍💻 Bounce will bring a huge rally🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27457 · 02.12.2025 г., 10:25

🇺🇸#FIL/USDT is currently shaping the descendingchannel formation on the weekly chart👨‍💻 Send it if we break out🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27378 · 17.09.2025 г., 09:00

🇺🇸#FIL/USDT is hovering above the broken descendingresistance line on the daily timeframe🧐 A pump is expected📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27268 · 02.06.2025 г., 09:38

🇺🇸#FIL/USDT is retesting the broken descendingresistance line on the daily timeframe🔍 Time to rally🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27164 · 23.02.2025 г., 19:18

🇺🇸#FIL/USDT has found support at the lowerborder of the descendingtriangle formation on the weekly chart👀 Time to bounce and rally📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27096 · 24.12.2024 г., 15:01

🇺🇸#FIL/USDT is retesting broken descendingresistance on the weekly chart🧐 Looking for a rise✈️ American Crypto©

Hashtags

123•••56
ПретходнаСтраница 1 од 6Следна