pub async fn all_ok<Ok, Err, F: IntoFuture<Output = Result<Ok, Err>>>(
futures: impl IntoIterator<Item = F>,
) -> Result<Vec<Ok>, Err>
Expand description
A future that awaits on all futures
at the same time and returns when all futures are Ok(_)
or any future is Err(_)
.
This is the dynamic version of all_ok!
.