Skip to main content

select

Function select 

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

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