How to wait for a list of async function calls in rust?

前端 未结 2 1023
一个人的身影
一个人的身影 2020-12-22 04:01

I have a list of async functions in rust that I want to execute concurrently and then wait for all them to finish. The working code I have right now is



        
2条回答
  •  旧巷少年郎
    2020-12-22 04:50

    I also asked a similar question on the same day, but in my case I had a Result wrapped in a Future. So instead of join_all I had to use try_join_all

提交回复
热议问题