Hi,
I already worked with coroutines in various other languages, mostly Kotlin & Go.
Now I'm practising rust and wanted to use rust's futures-library (0.3.5) for similar purposes.
Probably I'm using it wrong, but I'm not able to use rust's async-await mechanism the way I'm familar with.
An example case:
I have a Vec
of futures, each doing a network request. Now I want to perform all of them in parallel. But the only wa to "execute" these function is to .await
them one by one.
I actually don't see any difference to performing all requests synchronously.
Is there a way to "dispatch" the execution of async functions in parallel similar to the mechanism used in Go?