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

Резултати

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

Пребарај: #layer

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

@CoinSonar · Post #243385 · 17.04.2026 г., 00:54

#LAYER | Volume spike (USDT PAIR) 31 times the average volume 129.36K USDT traded in 15 min └Buying vol: 81.42K USDT 🟢 Boost score: 4/10 24h Vol: 394.58K USDT (Binance) Price: 0.0902 (-1.2% in 24h)

Hashtags

Pump Leaks

@pumpleaks · Post #678 · 06.01.2024 г., 00:36

Pump Result: One of the best pumps we’ve had. The volume crossed an unprecedented $3.2 million in the first 15 minutes, catapulting #LAYER to our 10x target (957%) and making all of our members huge profits, that’s exactly why we’re the best in the world. Our coin held as the top gainers for hours after our signal, demonstrating the real power of our whales and market makers. Even though we saw a huge volume of external selling (very likely coming from the coin team), we truly delivered on the expected exceptional first pump of the year, and things are just going to get better from here. We’re still receiving an overwhelming amount of gratitude messages from members that scored big, and asking for our next pump. No stress, enjoy the profits, we’ll announce it soon. In the meantime, we’re focusing our efforts on never used before marketing strategies to bring in over 1 million new members for our next Kucoin Mega Pump, which will absolutely dwarf anything we’ve seen until now. Stay tuned for our next pump announcement.

Hashtags

Wall Street Gems

@wallstreetgems · Post #583 · 06.01.2024 г., 00:37

Pump Result: One of the best pumps we’ve had. The volume crossed an unprecedented $3.2 million in the first 15 minutes, catapulting #LAYER to our 10x target (957%) and making all of our members huge profits, that’s exactly why we’re the best in the world. Our coin held as the top gainers for hours after our signal, demonstrating the real power of our whales and market makers. Even though we saw a huge volume of external selling (very likely coming from the coin team), we truly delivered on the expected exceptional first pump of the year, and things are just going to get better from here. We’re still receiving an overwhelming amount of gratitude messages from members that scored big, and asking for our next pump. No stress, enjoy the profits, we’ll announce it soon. In the meantime, we’re focusing our efforts on never used before marketing strategies to bring in over 1 million new members for our next Kucoin Mega Pump, which will absolutely dwarf anything we’ve seen until now. Stay tuned for our next pump announcement.

Hashtags

Pepe Pumps Signals

@pepe_pumps_signals · Post #293 · 06.01.2024 г., 00:36

Pump Result: One of the best pumps we’ve had. The volume crossed an unprecedented $3.2 million in the first 15 minutes, catapulting #LAYER to our 10x target (957%) and making all of our members huge profits, that’s exactly why we’re the best in the world. Our coin held as the top gainers for hours after our signal, demonstrating the real power of our whales and market makers. We truly delivered on the expected exceptional first pump of the year, and things are just going to get better from here. We’re still receiving an overwhelming amount of gratitude messages from members that scored big, and asking for our next pump. No stress, enjoy the profits, we’ll announce it soon. In the meantime, we’re focusing our efforts on never used before marketing strategies to bring in over 1 million new members for our next Kucoin Mega Pump, which will absolutely dwarf anything we’ve seen until now. Stay tuned for our next pump announcement.

Hashtags

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