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

Резултати

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

Пребарај: #rif

当前筛选 #rif清除筛选
Pro Analysis

@proanalysistrader · Post #28216 · 17.11.2024 г., 06:24

#RIF/USDT analysis : Following a significant decline of -83% from its all-time high, the price has found support at the $0.0600 level. Subsequently, it has bounced back and successfully broken above the trendline, indicating a confirmation of anticipated bullish momentum. It is expected that the price will continue this upward trajectory and test the previous swing high. TF : 1W Entry : $0.1117 Target : $0.3377 SL : $0.0766

Hashtags

Pro Analysis

@proanalysistrader · Post #27951 · 22.09.2024 г., 03:30

#RIF/USDT analysis : #RIF is trading above the support zone and the 200 EMA. The price is anticipated to rebound from this level and proceed to rise, testing the previous swing high. TF : 15min Entry : $0.0977 Target : $0.1007 SL : $0.0956

Hashtags

Alphavave Traders ️️️

@alphavave · Post #3256 · 21.04.2026 г., 00:34

#RIF yielded an impressive 3,010% return in a few days ⭐ If you used 200x leverage on this signal, you would've made a mind-blowing profit of 12,040%🤩 $50💰 would return $750💵 $50 💰 would return $1,500 💲 $50💰 would return $6,000💰 When you understand the market like we do, every move becomes predictable With 5+ years of trading experience, we spot these moves before they happen 💯 If you want daily signals like this, DM me to join our private group! 👇 @Kevindexter✅

Hashtags

Binance crypto champions

@binancecryptochampions · Post #3087 · 11.02.2026 г., 03:39

💎#RIF/USDT 💎 Signal Type: Regular (Long) Leverage: Cross (20.0x) Amount: 2.0% Entry Targets: 1) 0.04535 Take-Profit Targets: 1) 0.04635 2) 0.04800 3) 0.05065 Stop Targets: 1) 0.04250 🦋 Published by: @Trading_exp🦋 Join_vip: @Crypto_Futures_Spot_Payment_bot 🚫 Don't forget to Secure profit 🚫

Hashtags

Alex Kowalski | Trade

@kowalskitrade · Post #751 · 12.09.2024 г., 16:13

#RIF I'm expecting roughly this kind of movement on this asset, either with streaming start ups behind our magnets from above. 📈Sign up on Bybit to trade with me

Hashtags

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