@all_bts_updates · Post #109374 · 13.09.2025 г., 14:41
CORTIS sings happy birthday to #RM during his live on Weverse ! -@All_BTS_Updates
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
Пребарај: #rm
@all_bts_updates · Post #109374 · 13.09.2025 г., 14:41
CORTIS sings happy birthday to #RM during his live on Weverse ! -@All_BTS_Updates
Hashtags
@all_bts_updates · Post #108972 · 24.08.2025 г., 14:16
📊 CHARTS] "Indigo" by #RM now hits 900 Million streams on Spotify...! CONGRATULATIONS NAMJOON CONGRATULATIONS RM -@All_BTS_Updates
Hashtags
@OUR_7_PRINCES · Post #114719 · 19.07.2025 г., 16:44
#RM at the wedding of Kim Youngjin and Lee Hajeong in Seoul. #INFO •@OUR_7_PRINCES•
@OUR_7_PRINCES · Post #114718 · 19.07.2025 г., 16:43
Tae Hoon Lee (Nike’s Korea Marketing Director) shared a picture of #RM with J-Hope and Suga at the wedding. #INFO •@OUR_7_PRINCES•
@OUR_7_PRINCES · Post #113788 · 18.06.2025 г., 23:41
#RM in his session talk for Samsung Art TV at Art Basel. #INFO •@OUR_7_PRINCES•
@OUR_7_PRINCES · Post #113780 · 18.06.2025 г., 23:41
#RM spotted at Art Basel's Messeplatz in Switzerland. #INFO •@OUR_7_PRINCES•
@OUR_7_PRINCES · Post #113774 · 18.06.2025 г., 23:41
#RM spotted at Art Basel's Messeplatz in Switzerland. #INFO •@OUR_7_PRINCES•
@OUR_7_PRINCES · Post #113772 · 18.06.2025 г., 23:26
#RM via Amalia Wirjono (Museum MACAN's Head of Development) instagram. https://www.instagram.com/p/DLDS91PTkYX/?igsh=aGU2ZXc2bGk2cGw2 #INFO •@OUR_7_PRINCES•
@OUR_7_PRINCES · Post #115031 · 01.08.2025 г., 08:42
RM INSTAGRAM STORY UPDATE 💜 Translation Weren’t you curious? You must have been very curious. But writing is something you keep doing because you think you can’t help it, even if you won’t become a good writer. They probably kept writing, and by doing so, they became writers. Now they are probably getting asked the same question I get: ‘Did you always think you’d become a writer?’ If you live like a useless boat drifting with the tide, you eventually arrive somewhere. That is the future. And it comes even if you do nothing. When you finally reach that future, there is something everyone does—rewrite the preface of the past to match the ending [this quote is from a book. It’s attributed to Kim Young-ha (김영하) and appears in his novel A Single Life (단 한 번의 삶) .] #RM | #INSTAGRAM •@OUR_7_PRINCES•
Hashtags
@OUR_7_PRINCES · Post #114745 · 21.07.2025 г., 14:52
RM INSTAGRAM POST UPDATE 💜 🐨: nonchalant #RM | #INSTAGRAM •@OUR_7_PRINCES•
Hashtags
@OUR_7_PRINCES · Post #114717 · 19.07.2025 г., 16:42
Artist Yoon Jiyong shared this picture of #RM on instagram story. #INSTAGRAM •@OUR_7_PRINCES•
Hashtags
@OUR_7_PRINCES · Post #114715 · 19.07.2025 г., 16:42
#RM via rkive repost: 1. Eyes Magazine editor Jin Pyo: “Kim euri @ rkive You’re really a good host/MC.” 2. Post Archive Fasion Creative Director Lim Dongjoon: “You're the best MC/host I've ever seen...” #RM | #INSTAGRAM •@OUR_7_PRINCES•
Hashtags