Function run_unordered

Source
pub async fn run_unordered<'future, Runnable, T, E>(
    runnables: impl Iterator<Item = Runnable>,
    closure: impl Fn(usize, Runnable) -> BoxFuture<'future, Result<T, E>>,
) -> Result<Vec<T>, Vec<E>>
where T: Debug, E: Debug,
Expand description

Runs the provided closure on all supplied runnables concurrently in the unordered way.