Function ntex_util::future::select

source ·
pub async fn select<A, B>(fut_a: A, fut_b: B) -> Either<A::Output, B::Output> 
where A: Future, B: Future,
Expand description

Waits for either one of two differently-typed futures to complete.