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

Резултати

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

Пребарај: #paws

当前筛选 #paws清除筛选
Airdrop Gold : Crypto Airdrop

@airdropgoldchannel · Post #158025 · 08.03.2025 г., 20:28

#PAWS Solana OG Allocation If you have an active Solana wallet, check if you’ve received an airdrop or not. Here's the full list of the 13 projects in the Solana OG Allocation: Memecoins: DogWifHat ($WIF) - Bonk ($BONK) Pudgy Penguins ($PENGU) STONKS ($STNK) GigaChad ($GIGA) Eliza ($Ai16z) DeFi: Magic Eden ($ME) Phantom Wallet Jupiter ($JUP) Raydium ($RAY) Solana Phone Jito ($JTO) Mad Lads by Backpack Paws Airdrop Checker: https://paws.community/app/solana-og

Hashtags

Airdrop Gold : Crypto Airdrop

@airdropgoldchannel · Post #157896 · 12.01.2025 г., 16:32

#PAWS The airdrop criteria have appeared on the PAWS website !! ➡Open the PAWS app ➡Tap "Check Eligibility" ➡See if you qualify for the airdrop! Are you Eligible? 🗿 Yes 😢 No

Hashtags

Airdrop Gold : Crypto Airdrop

@airdropgoldchannel · Post #157873 · 05.11.2024 г., 16:12

New Task added in @Paws Get 5000 Paws by completing this task 👉 Big #PAWS Sighted In These Area! 🐶 New task just dropped. Put 🐾 in your name and stay on marked trails! 👉 PLAY PAWS : CLICK

Hashtags

Airdrop Gold : Crypto Airdrop

@airdropgoldchannel · Post #157861 · 01.11.2024 г., 07:31

#Paws Bot is Verified !! Just a few days ago, the @PAWS bot launched and within less then 3 days it reached a massive milestone of 10 million users! 🤯 And now, it's officially verified by Telegram! 🎉 👉PLAY : @PAWS

Hashtags

Airdrop Center

@centralchanel · Post #16458 · 06.02.2025 г., 19:24

💎PAWS ONE LAST RIDE 💎 The final mandatory check is live! Only those who finish it will stay in. Go to PAWS Web & check it off. P.S. Special roles for holding 10+ Vouchers are now available in PAWS Discord!🐾 #PAWS HIGHER 🐶

Hashtags

Crypto currents | Money, Games, News.

@cryptocurrentsglobal · Post #3025 · 07.02.2025 г., 05:56

💎PAWS ONE LAST RIDE 💎 The final mandatory check is live! Only those who finish it will stay in. Go to PAWS Web & check it off. P.S. Special roles for holding 10+ Vouchers are now available in PAWS Discord!🐾 #PAWS HIGHER 🐶

Hashtags

Ton Cryptans

@toncryptans · Post #2491 · 16.04.2025 г., 11:14

🏁 Верите во что-то? 👍 — верю 🔥 — лесом ❤️ — не участвовал 🤩 Никакие данаты не окупились, ни крупные, ни мелкие. Пока жестко побрили. В принципе все без изменений 😄 ❗️Под каждым постом, комментарий, продержавшийся 15 минут не перекрытый следующим комментарием, получает подарок TG #PAWS - - - - - - - - - - - - 🤓Ton Cryptans | Чат | UNI | SCAM - - - - - - - - - - - - 🤓Игры | ⭐️ Купить STARS - - - - - - - - - - - - How to read our content in your language / فارسیفارسی

Hashtags

Crypto & Gifts NEWS

@serbadgernews · Post #1888 · 03.11.2024 г., 05:47

#paws 🐾PAWS 18,000,000 million participants 🔥The project is gaining momentum, the next trail according to the hint in the video is the X Empire project, they should still drop coins for it💎 💵Easy money 10-50$, without doing anything @PAWS -------------------------------------------------- 🤘Blums code

Hashtags

Crypto Drop Club

@drop_cryptogo · Post #1660 · 15.02.2025 г., 15:52

🗣#PAWS – Upcoming Airdrop for Solana DeFi Users PAWS has announced an upcoming airdrop, rewarding everyone who has used DeFi on Solana! 🔗Post 💡 What to Expect: 🟠 Rewards for Jupiter swaps 🟠 Perks for NFT purchases on Magic Eden 🟠 Bonuses for using Phantom Wallet ⏳ Now is the time to prepare your accounts for the drop! ☝️ Start trading on Bybit Crypto Drop Club 👉 SUBSCRIBE

Hashtags

123•••10•••20•••2526
ПретходнаСтраница 1 од 26Следна