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

Резултати

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

Пребарај: #fet

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

@proanalysistrader · Post #28270 · 27.11.2024 г., 07:56

#FET/USDT Analysis- The price has formed a symmetrical triangle pattern. Given the current bullish market scenario, there is a high probability of an upward breakout. If the breakout occurs, the price is likely to rally toward the target zone from the breakout point. T.F.- 1-D ENTRY- as soon as it gives breakout SL- 1.2 TARGET- 2.04 Note: If the stop-loss is triggered before entry, disregard the trade as the price action may develop differently.

Hashtags

Pro Analysis

@proanalysistrader · Post #27893 · 31.08.2024 г., 17:52

#FET/USDT analysis : #FET has broken down the 200 EMA and previous support levels. It is now undergoing a pullback and retesting the resistance zone. The price is expected to reject from there and bounce back to continue its bearish momentum. TF : 1H Entry : $1.170 Target : $1.057 SL : $1.252

Hashtags

American Crypto©

@americancryptotrading · Post #27518 · 29.01.2026 г., 11:04

🇺🇸#FET/USDT is facing the lowerboundary of the descendingchannel formation on the weekly chart🧐 Looks bullish✈️ American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27482 · 27.12.2025 г., 09:39

🇺🇸#FET/USDT is trading near the lowerborder of the descendingchannel formation on the 2W chart💁‍♂️ A great moment to accumulate🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27370 · 10.09.2025 г., 09:48

🇺🇸#FET/USDT is trading within the descending channel formation on the 3D chart🧐 More upside if a breakout occurs📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27280 · 14.06.2025 г., 12:10

🇺🇸#FET/USDT is hovering above the broken s/rzone on the weekly chart🔍 Looking for a bounce✈️ American Crypto©

Hashtags

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