Category "rust-futures"

Rust - return a future in a closure

I am trying to add a return type of a future in a closure. But the compiler is telling me that `impl Trait` only allowed in function and inherent method return

How to collect multiple results from concurrently working for loop?

I would like to run a function with lots of different variables Let assume my function is : async fn do_the_hard_job(my_input: u16) { ... // do the hard