@Dwflabs · Post #16 · 22.08.2022 г., 04:37
The future is always bright for those who can paint it with the colours of ambition, confidence, and positivity; with the right partner to support such a vision. #dwflabs#venturecapital#marketmaking
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
Пребарај: #dwflabs
@Dwflabs · Post #16 · 22.08.2022 г., 04:37
The future is always bright for those who can paint it with the colours of ambition, confidence, and positivity; with the right partner to support such a vision. #dwflabs#venturecapital#marketmaking
@Dwflabs · Post #15 · 15.08.2022 г., 07:15
The market goes up. The market goes down. In times of uncertainty, seek the right partner. The one able to guide you through the most difficult decisions. #dwflabs#venturecapital#marketmaking
@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
@DWFLabs · Post #725 · 26.06.2024 г., 13:57
Could you decipher where we are? 😁 Our Business Partner of Ecosystems, Alessia Baumgartner is taking the stage soon. If you're around and would like to hear more about what we look for in projects, come join us 🔥 #Decipher2024#Algorand#DWFLabs
Hashtags
@spotonchain · Post #867 · 20.06.2024 г., 10:11
$LISTA was just listed on several exchanges with a starting price of $0.565! Note that DWF Labs (@DWFLabs) appears to be an MM of @lista_dao. In the past 2 days prior to the listing, DWF Labs received 10M $LISTA from the project and has been transferring the tokens to CEX, including: • 2.5M $LISTA to #Bitget • 2M $LISTA to #Binance • 1.5M $LISTA to #MEXC • 850K $LISTA to #Gateio • 850K $LISTA to #KuCoin Follow @spotonchain and set alerts for the #DWFLabs entity via https://platform.spotonchain.ai/en/platform/entity/122?tokens=LISTA&min_amount=1
@Dwflabs · Post #46 · 13.10.2022 г., 11:31
The Crypto Oasis Ecosystem Report 2022 for the UAE is now LIVE and DWF Labs is a part of it. Download your copy here https://t.ly/orEH #CryptoOasis#EcosystemReport#dwflabs#marketmaking#crypto