pub fn select<A, B>(
fut_a: A,
fut_b: B,
) -> impl Future<Output = Either<<A as Future>::Output, <B as Future>::Output>>Expand description
Waits for either one of two differently-typed futures to complete.
fut_a is polled first, so it wins when both futures are ready during the
same poll. The other future is dropped.