How to join futures in a "Vec<F> where F: Future<Output = ()>"

futures_util::join! doesn't seems work.

Why don’t you try to iterate over your Vec?

If I do

for future in vec {

then the futures is executed one by one, but if run in parallel, it will be more efficient.

I just forgot futures_util::future::join_all(). Sorry.

If you need parallel iterator, use rayon. Looks like you’ve already solved your problem tho.