@DESI_MEMES_Funny_Jokes · Post #5658 · 01.11.2024 г., 08:09
Bach Gaya 🤣🤣🤣 #reels#funnyreels
Hashtags
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
Пребарај: #funnyreels
@DESI_MEMES_Funny_Jokes · Post #5658 · 01.11.2024 г., 08:09
Bach Gaya 🤣🤣🤣 #reels#funnyreels
Hashtags
@desi_memes_funny_jokes · Post #4694 · 02.06.2024 г., 15:35
#funnyreels#funnymemes
Hashtags
@desi_memes_funny_jokes · Post #4615 · 25.05.2024 г., 04:55
Comment 😂 | #trendingreels#viralreels#funnyreels
@desi_memes_funny_jokes · Post #4729 · 05.06.2024 г., 17:29
Uncle ko ghusaa bhari pad gya 😂 #funny#comedy#funnyreels
Hashtags
@DESI_MEMES_Funny_Jokes · Post #5867 · 26.11.2024 г., 07:32
How to be Successful #comedyreels#funnyvideos#funnyreels
@instablog9jaofficial · Post #173896 · 18.05.2026 г., 18:07
So village people are actually holding monthly board meetings and Nigerians are STILL stressing them 😭💀 Wait till you hear why Emeka really failed JAMB 😂 Comment the funniest excuse you’ve heard before 👀 #NigerianComedy #VillagePeople #FunnyReels #Instablog9jaVibes
@instablog9jaofficial · Post #173848 · 17.05.2026 г., 19:26
Nigerians even carried their wahala enter heaven immigration office 😭☁️ #Instablog9jaVibes#NigerianComedy#AITiktok#FunnyReels
@desi_memes_funny_jokes · Post #4752 · 08.06.2024 г., 09:08
Wait for end 😂😂 . . . #reels#funny#reelsinstagram#explore#funnyreels
@desi_memes_funny_jokes · Post #4674 · 31.05.2024 г., 14:23
Weight Guys 👏😂😂 #reels#funnyreels#friendsforlife#comedyreels
@capcut_editing_material · Post #1310 · 04.07.2025 г., 05:32
🐵 MONKEY AI + 500+ REEL BUNDLE is HERE! 🎬 🔥 Download the funniest + most viral-ready Monkey AI Videos with a massive collection of 500+ Reels! 📦 What You Get: ✅ Monkey AI Viral Videos 🐒 ✅ 500+ Engaging Reels ✅ Perfect for Instagram, YouTube Shorts & Telegram ✅ Instant Download – Ready to Post! 👇 Grab it Now 👇 🔗https://adrinolinks.com/ZRCk 💥 Use them for meme pages, reel edits, or just pure entertainment — these will go viral! #MonkeyAI#ReelBundle#FunnyReels#AIVideos#MonkeyVideos
@DESI_MEMES_Funny_Jokes · Post #5986 · 08.12.2024 г., 16:56
Tag that biker friend 😂... #funnyreels#funnyvideos#trending#idea#unlock
@desi_memes_funny_jokes · Post #5342 · 30.09.2024 г., 06:05
Dahej me sali de rahe hai #memes#funnyreels#comedyreels#viral#comedyreels#funnyreels#comedymemes#sarcasm#hindimemes