@masterprotocol_news · Post #129 · 09.09.2024 г., 08:11
🇰🇷 Master Protocol at #KBW2024 🥰 What a Week!
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
Пребарај: #kbw2024
@masterprotocol_news · Post #129 · 09.09.2024 г., 08:11
🇰🇷 Master Protocol at #KBW2024 🥰 What a Week!
Hashtags
@DWFLabs · Post #835 · 12.09.2024 г., 05:32
We had a blast at DWF Labs Haus: Korea Blockchain Week 2024. Check out some of our highlights 🥂 It was a treat to welcome our guests at a luxurious venue with a stunning view; delicious food and drinks; and great vibes to celebrate #KBW2024. We're grateful for every opportunity to meet our friends and partners in person. Thank you to everyone who attended 🤝 #DWFLabsxKBW2024
Hashtags
@DWFLabs · Post #796 · 30.08.2024 г., 05:30
Ready for DWF Labs Haus: Korea Blockchain Week? 🇰🇷 We're gearing up to host another 🔥 edition of DWF Labs Haus during #KBW2024. The event is in less than a week — reserve your spot now to meet our top tier community. Register here. 📆 4 Sep 2024 ⏱️ 7PM to 11PM GMT+9 #DWFLabsxKBW2024
Hashtags
@DWFLabs · Post #787 · 26.08.2024 г., 04:48
Have you registered for DWF Labs Haus: Korea Blockchain Week yet? Get ready to meet our team and a top tier crypto community at our event during #KBW2024. Register here. 📆 4 Sep 2024 ⏱️ 7PM to 11PM GMT+9 #DWFLabsxKBW2024
Hashtags
@DWFLabs · Post #772 · 08.08.2024 г., 08:00
Get ready for DWF Labs Haus: Korea Blockchain Week 🔥 We're excited to host some of the brightest innovators and crypto enthusiasts over delicious cocktails and canapés during #KBW2024. Register here. 📆 4 Sep 2024 ⏱️ 7PM to 11PM GMT+9 #DWFLabsxKBW2024
Hashtags
@DWFLabs · Post #779 · 15.08.2024 г., 04:00
DWF Labs Haus is coming to #KBW2024 and #TOKEN2049! Come meet with industry leaders and our top tier KOL community in Seoul and Singapore 🤝 All approved DWF Labs KOLs will receive priority registration approval for our events, as well as access to exclusive deal flow from over 700 projects. If you have yet to join our community, register here: https://dwf-labs.com/wavemakers Register for DWF Labs Haus: Korea Blockchain Weekhere. Register for DWF Labs Haus: TOKEN2049 Singaporehere. P.S. We will only reach out to shortlisted KOLs. #DWFLabsxWaveMaker
@DWFLabs · Post #800 · 02.09.2024 г., 08:43
Our Business Partner of Business Development Lingling Jiang is sharing on our work and support for the space 🙌🔥 If you're around, come say hi to the team! #KSL2024#KBW2024#DWFLabs