zng_task

Function any

Source
pub async fn any<F: IntoFuture>(
    futures: impl IntoIterator<Item = F>,
) -> F::Output
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!.