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

Резултати

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

Пребарај: #xlm

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

@proanalysistrader · Post #28537 · 13.03.2025 г., 03:30

#XLM/USDT analysis : #XLM is in an uptrend, trading above the 200-day EMA on the daily timeframe. The price has tested the support zone and 200-day EMA, and it is expected to rebound from the current level and move upside to test higher levels. For a long entry, wait for the price to break above the $0.2760 level. TF : 1D Entry : $0.2764 Target : $0.6374 SL : $0.2094

Hashtags

Pro Analysis

@proanalysistrader · Post #28490 · 21.02.2025 г., 15:22

#XLM/USDT analysis : #XLM is in an uptrend, forming higher highs (HHs) and higher lows (HLs) above the 200 EMA. The price has retested the 200 EMA and is anticipated to rebound, resuming its bullish momentum to test swing high levels. For a long entry, it is recommended to wait for a breakout above the $0.3751 level. TF : 1D Entry : $0.3751 Target : $0.6374 SL : $0.2764

Hashtags

Pro Analysis

@proanalysistrader · Post #27761 · 17.07.2024 г., 17:09

#XLM/USDT analysis - #XLM recently broke above the 200 EMA with strong momentum. The next move might be a retest of this level and a test of the support zone. Look for a pullback near the 200 EMA for a potential long entry. The previous resistance zone could serve as the target level. TF : 4h Entry : $0.0937 Target : $0.1198 SL : $0.0863

Hashtags

American Crypto©

@americancryptotrading · Post #27579 · 05.04.2026 г., 09:35

🇺🇸#XLM/USDT is currently forming the descendingchannel formation on the 3D timeframe🔍 Accumulate before the rocket takes off✈️ American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27489 · 02.01.2026 г., 10:30

🇺🇸#XLM/USDT is trading inside the descendingchannel on the 2D chart👨‍💻 Bullish on a breakout🚀 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27390 · 28.09.2025 г., 08:30

🇺🇸#XLM/USDT is holding above the broken s/rzone on the daily chart🔥 Bullish📈 American Crypto©

Hashtags

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