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

Резултати

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

Пребарај: #xtz

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

@proanalysistrader · Post #28430 · 28.01.2025 г., 13:50

#XTZ/USDT analysis : #XTZ is in an uptrend and has broken out above the 200 EMA and previous highs. Currently, the price is retesting the previous resistance zone, which has now turned into support. It is anticipated that the price will rebound from this level and resume bullish momentum to test the previous highs. TF : 1D Entry : $1.012 Target : $1.800 SL : $0.783

Hashtags

Pro Analysis

@proanalysistrader · Post #28342 · 15.12.2024 г., 12:33

#XTZ/USDT analysis : #XTZ has broken below the 200 EMA and has retested it. Currently, the price is encountering resistance from the resistance zone, and it is expected to decline from here. A drop is anticipated, potentially leading to a test of previous lows. TF : 2H Entry : $1.420 Target : $1.150 SL : $1.530

Hashtags

Pro Analysis

@proanalysistrader · Post #28023 · 15.10.2024 г., 14:54

#XTZ/USDT analysis : #XTZ has broken out and retested the previous swing high and the 200 EMA. The price is expected to bounce back from this level and test the higher levels. TF : 4H Entry : $0.694 Target : $0.744 SL : $0.661

Hashtags

Pro Analysis

@proanalysistrader · Post #27837 · 13.08.2024 г., 16:39

#XTZ/USDT analysis : #XTZ is again approaching the 200 EMA resistance after facing rejection from there and is expected to continue its bearish momentum once the zone is tested. The previous low will be the target level. TF : 2H Entry : $0.687 Target : $0.591 SL : $0.709

Hashtags

American Crypto©

@americancryptotrading · Post #27528 · 08.02.2026 г., 10:09

🇺🇸#XTZ/USDT is facing the lowerboundary of the fallingwedge formation on the 2W chart👨‍💻 Expecting a price recovery🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27369 · 09.09.2025 г., 09:42

🇺🇸#XTZ/USDT has retested the s/rzone on the daily chart🔍 The rally is coming🚀 American Crypto©

Hashtags

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