How to wait for just the first task to complete

前端 未结 0 1787
暖寄归人
暖寄归人 2020-12-03 14:44

If there are a set of concurrent tasks scheduled, how to wait for the first task to complete?.

Does exists something like wait([t1, t2], return_when=:FIRST_COMP

相关标签:
回答
  • 消灭零回复
提交回复
热议问题