zng::task

Function any

Source
pub async fn any<F>(
    futures: impl IntoIterator<Item = F>,
) -> <F as IntoFuture>::Output
where F: IntoFuture,
Expand description

A future that awaits on all futures at the same time and returns the first result when the first future is ready.

This is the dynamic version of any!.