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

Резултати

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

Пребарај: #coti

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

@proanalysistrader · Post #28427 · 26.01.2025 г., 14:53

#COTI/USDT analysis : #COTI is currently forming higher highs (HHs) and higher lows (HLs) along the trendline. The price is consolidating above this trendline, suggesting a potential bounce back and a test of higher levels. TF : 1W Entry : $0.10200 Target : $0.18200 SL : $0.07670

Hashtags

Pro Analysis

@proanalysistrader · Post #28282 · 29.11.2024 г., 11:03

#COTI/USDT analysis : #COTI is in an uptrend, forming a structure of higher highs (HHs) and higher lows (HLs). The price has broken out and successfully retested the trendline, continuing its bullish trajectory. Currently, the price is trading above a minor resistance zone, which has now become a buy zone. It is anticipated that the price will rise further and test higher levels. TF : 1H Entry : $0.14450 Target : $0.16145 SL : $0.13292

Hashtags

American Crypto©

@americancryptotrading · Post #27541 · 21.02.2026 г., 10:43

🇺🇸#COTI/USDT has found support at the lowerboundary of the descendingchannel pattern on the weekly timeframe💁‍♂️ Time to bounce and rally✈️ American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27488 · 01.01.2026 г., 11:17

🇺🇸#COTI/USDT is attempting to rebound from the lowerborder of the descendingchannel formation on the weekly chart🧐 More upside is likely🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27374 · 13.09.2025 г., 09:29

🇺🇸#COTI/USDT is on the verge of a breakout from the descendingchannel formation on the daily timeframe👨‍💻 The rally is coming📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27317 · 20.07.2025 г., 08:45

🇺🇸#COTI/USDT is holding above the lowerboundary of the descendingtriangle on the weekly chart👨‍💻 Up we go🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27185 · 15.03.2025 г., 14:32

🇺🇸#COTI/USDT is maintaining position above the lowerborder of the symmetricaltriangle formation on the weekly timeframe🔍 Strong upside potential on a bounce✈️ American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27181 · 11.03.2025 г., 14:22

🇺🇸#COTI/USDT is consolidating near the s/r zone on the weekly chart🧐 Bullish case if we bounce off the one🚀 American Crypto©

Hashtags

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