TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #402 · 22 дек.

Отдельно разберём TaskGroup, который пришел на замену gather в Python 3.11. Ключевые отличия ▫️create_task() возвращает объект asyncio.Task, у которого есть соответствюущие методы управления. То есть у нас больше контроля ▫️это контекстный менеджер, который гарантирует что все таски будут остановлены по выходу из контекста ▫️ошибка автоматически отменяет незавершенные задачи, ▫️except* передает нам ExceptionGroup, в котором каждую ошибку можно обработать отдельно import asyncio import random async def do_it() -> str: if random.random() < 0.1: raise ValueError('Oops') delay = random.uniform(0.5, 1.5) await asyncio.sleep(delay) return delay async def main(): try: async with asyncio.TaskGroup() as tg: for _ in range(10): tasks.append(tg.create_task(do_it())) for t in tasks: print(t.result()) except *ValueError as e: for err in e.exceptions: print(err) asyncio.run(main()) Рекомендую изучить страницу Coroutines and Tasks из документации, где представлено больше интересных примеров и механизмов - таймауты - отмена задач - создание задач из другого потока #async

Hashtags

Резултати

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

Пребарај: #ont

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

@CoinSonar · Post #243936 · 18.04.2026 г., 02:52

#ONT | Volume spike (USDT PAIR) 9 times the average volume 1.17M USDT traded in 15 min └Buying vol: 692.98K USDT 🟢 Boost score: 2/10 24h Vol: 11.63M USDT (Binance) Price: 0.0929 (-14.1% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28367 · 05.01.2025 г., 13:18

#ONT/USDT analysis : #ONT has successfully broken out and is currently testing a previously respected resistance zone. The price has rebounded from this zone, and it is expected to resume its upward momentum, aiming to test previous highs. TF : 1D Entry : $0.2595 Target : $0.3900 SL : $0.2050

Hashtags

Pro Analysis

@proanalysistrader · Post #27770 · 28.07.2024 г., 16:54

#ONT/USDT analysis - #ONT be in downtrend trading below 200ema. After a corrective pullback, price retraced to 200ema and getting rejected. It is expected to drop from current level and test previous lows. TF : 4H Entry : $0.2013 Target : $0.1597 SL : $0.2125

Hashtags

American Crypto©

@americancryptotrading · Post #27278 · 12.06.2025 г., 10:04

🇺🇸#ONT/USDT is trading below the descendingresistance on the daily timeframe👀 A breakout is on the way🚀 American Crypto©

Hashtags

Crypto GALAXY

@crypto_galaxy_signals · Post #1283 · 13.04.2024 г., 12:06

Coin: #ONT/USDT Direction: Long Leverage: 20x - Cross ----------------------------------- TAKE-PROFIT: 1 - 0,32298 ✔️ 2 - 0,32697 ✔️ 3 - 0,33495 ✔️ 4 - 0,35090 ✔️ 5 - 0,38280 ✔️ 6 - 0,41470 ✔️ 7 - 0,44660 ✔️ 8 - 0,47850 ✔️ ✨ All TP Targets achieved 🔥Profit: 1000.00%🔥 💬Contact & VIP Support

Hashtags

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