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

Резултати

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

Пребарај: #shib

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

@CoinSonar · Post #243269 · 16.04.2026 г., 18:53

#SHIB | Volume spike (USDT PAIR) 9 times the average volume 488.35K USDT traded in 15 min └Selling vol: 255.32K USDT 🔴 Boost score: 1/10 24h Vol: 4.72M USDT (Binance) Price: 0.00000635 (-4.2% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28511 · 02.03.2025 г., 16:57

#SHIB/USDT analysis : The price of #SHIB has recently broken out of its trendline, indicating a potential bullish momentum. While a retracement to the 200 EMA is expected, the overall sentiment suggests that the price is likely to move upwards and test the swing high level. TF : 4h Entry : $0.00001480 Target : $0.00001734 SL : $0.00001313

Hashtags

Pro Analysis

@proanalysistrader · Post #28225 · 19.11.2024 г., 12:45

#SHIB/USDT analysis : #SHIB has successfully broken out of the trendline, demonstrating a strong bullish movement. It is anticipated that this upward momentum will continue, allowing the price to test higher levels. TF : 1D Entry : $0.00002536 Target : $0.00004567 SL : $0.00001827

Hashtags

American Crypto©

@americancryptotrading · Post #27615 · 10.05.2026 г., 08:40

🇺🇸#SHIB/USDT is facing the upperboundary of the fallingwedge pattern on the 3D timeframe👨‍💻 A confirmed breakout could lead to massive gains🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27392 · 30.09.2025 г., 09:24

🇺🇸#SHIB/USDT has retested the upperborder of the fallingwedge pattern on the 2D chart🧐 The rally is coming🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27334 · 06.08.2025 г., 09:08

🇺🇸#SHIB/USDT is currently trading at the s/rzone on the weekly chart👀 Bullish mode is on if we bounce📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27206 · 04.04.2025 г., 21:47

🇺🇸#SHIB/USDT is trading within the descendingchannel pattern on the daily timeframe🔍 Looks bullish📈 American Crypto©

Hashtags

Coinlegs Cryptocurrency Signals

@coinlegs · Post #9982 · 24.02.2024 г., 08:21

#SHIB -%5 in 6hrs 🤑🤑 Algorithmic bots on our Discord server print us instant money. Thanks to Hey CoinLegs signals, we were able to catch short-term signals instantly. Join us to get access to these and many other algorithmic auto signals 👇 https://discord.gg/8RKtAA9cxZ

Hashtags

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