Function ntex::util::select [−][src]
pub async fn select<A, B>(
fut_a: A,
fut_b: B
) -> Either<<A as Future>::Output, <B as Future>::Output> where
B: Future,
A: Future,
Expand description
Waits for either one of two differently-typed futures to complete.