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

Резултати

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

Пребарај: #hot

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

@CoinSonar · Post #243532 · 17.04.2026 г., 08:19

#HOT | Volume spike (USDT PAIR) 600 times the average volume 107.65K USDT traded in 1 min └Selling vol: 53.99K USDT 🔴 Boost score: 1/10 24h Vol: 258.19K USDT (Binance) Price: 0.000454 (-2.5% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #27846 · 16.08.2024 г., 15:04

#HOT/USDT analysis : #HOT has broken and retested the support levels, which are now acting as resistance for the price. The price is currently in a downtrend on the higher timeframe and is expected to continue its momentum from the current level. TF : 1H Entry : $0.00135 Target : $0.00123 SL : $0.00142

Hashtags

Pro Analysis

@proanalysistrader · Post #27736 · 06.07.2024 г., 02:45

#HOT/USDT analysis - #HOT is currently consolidating sideways above a support line. The price has tapped into liquidity from previous lows below the support line. It appears poised to move upwards, with the previous high as the target level. TF : 5min Entry : $0.00145 Target : $0.00150 SL : $0.00143

Hashtags

Pro Analysis

@proanalysistrader · Post #27691 · 21.06.2024 г., 16:05

#HOT/USDT analysis - #HOT is currently on a downtrend, trading below the 200 EMA. At the moment, it's experiencing a pullback and has retraced to previous support levels near the 200 EMA. The price is encountering resistance near the 200 EMA and appears poised to start moving downwards. It's likely that the price will test previous lows in the near future. TF : 1h Entry : $0.00184 Target : $0.00162 SL : $0.00201

Hashtags

American Crypto©

@americancryptotrading · Post #27599 · 25.04.2026 г., 08:39

🇺🇸#HOT/USDT is facing the upperboundary of the fallingwedge pattern on the 2D timeframe👨‍💻 Breakout → Retest → Rally✈️ American Crypto©

Hashtags

🏆 Premium, NFT, Tokens

@giiveaways · Post #3454 · 14.01.2025 г., 15:18

4834 new target 5000 🔥 🔥Claim/198 activationsFiredrop 0.25 HOT How to claim: ╔•1.Join our village. ╠• ╚•2.Subscribe claim 0.25 HOT 🎁Gifts, NFTs, stars, premium Telegram, crypto airdrops, and tokens like 🔥HOT and more! Premium 👥VIP status! Join and win every day! #hot

Hashtags

Binance crypto champions

@binancecryptochampions · Post #2482 · 09.07.2025 г., 00:57

⚡️⚡️#HOT/USDT⚡️⚡️ Exchanges: Binance Futures, Bybit USDT Signal Type: Regular (Long) Leverage: Cross (20x) Margin: 2.0% Entry Targets: 1) 0.0008214 2) 0.0008330 Take-Profit Targets: 1) 0.0008430 2) 0.0008480 3) 0.0008600 Stop Targets: 1) 0.0008160 🍁 Published by: @Trading_exp🍁 Join_vip: @Crypto_Futures_Spot_Payment_bot

Hashtags

Crypto

@signal_bitcoins · Post #2355 · 15.01.2024 г., 14:58

#HOT rejected from the ceiling of supply zone on 3D Time frame,it can bounce again from the Green zone, everything is bullish now 📈 ❄️@signals_bitcoin_crypto❄️ ❄️@Shadow_support0o❄️

Hashtags

🏆 Premium, NFT, Tokens

@Giiveaways · Post #2340 · 01.07.2024 г., 21:59

🪙1933 new target 2000 #HOT🔥 🔥Claim/100 activationsFiredrop0.25 HOT How to claim: 1) Join our village. 2) Follow @ChatCryptoTON 3) Claim FireDrop🔥

Hashtags

🏆 Premium, NFT, Tokens

@Giiveaways · Post #2299 · 26.06.2024 г., 20:04

🪙1853 new target 2000 #HOT🔥 How to claim: 1) Join our village. 2) Follow @ChatCryptoTON 🔥Claim 170/288 activationsFiredrop0.15 HOT 🔥Claim/88 activationsFiredrop0.25 HOT

Hashtags

123•••10•••1516
ПретходнаСтраница 1 од 16Следна