futures_util::join!
doesn't seems work.
Why don’t you try to iterate over your Vec
?
If I do
for future in vec {
future.await
}
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.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.