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

Резултати

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

Пребарај: #hft

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

@CoinSonar · Post #244039 · 18.04.2026 г., 07:34

#HFT | Volume spike (USDT PAIR) 39 times the average volume 128.56K USDT traded in 15 min └Buying vol: 75.31K USDT 🟢 Boost score: 5/10 24h Vol: 310.07K USDT (Binance) Price: 0.0176 (-2.2% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28365 · 04.01.2025 г., 17:27

#HFT/USDT analysis : #HFT has broken out and retested the previously respected zone. The price is expected to rebound from this level and resume its bullish momentum, aiming to test the previous highs. This indicates a strong potential for upward movement as the market seeks to continue its bullish trend. TF : 1D Entry : $0.2230 Target : $0.3200 SL : $0.1770

Hashtags

Pro Analysis

@proanalysistrader · Post #27800 · 05.08.2024 г., 17:10

#HFT/USDT analysis : #HFT is in downtrend, trading below 200ema. Price is in pullback phase. Let it approach resistance zone and reject from there to downside as previous swing low is expect to be tested. TF : 15min Entry : $0.1390 Target : $0.1163 SL : $0.1483

Hashtags

American Crypto©

@americancryptotrading · Post #27436 · 12.11.2025 г., 11:15

🇺🇸#HFT/USDT is getting ready to break out from the descendingchannel on the weekly chart👀 Bullish case📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27258 · 23.05.2025 г., 09:49

🇺🇸#HFT/USDT is on the edge of breaking through the descendingresistance on the daily chart🧐 Looking for a leg upward✈️ American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27105 · 02.01.2025 г., 17:17

🇺🇸#HFT/USDT is trading within the descendingchannel on the 3D chart💁‍♂️ Time to break out and rally📈 American Crypto©

Hashtags

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