zng::task

Function all_some

Source
pub async fn all_some<Some, F>(
    futures: impl IntoIterator<Item = F>,
) -> Option<Vec<Some>>
where F: IntoFuture<Output = Option<Some>>,
Expand description

A future that awaits on all futures at the same time and returns when all futures are Some(_) or any future is None.

This is the dynamic version of all_some!.