futures_micro::prelude

Function or

Source
pub fn or<F1, F2>(future1: F1, future2: F2) -> Or<F1, F2> 
where F1: Future, F2: Future,
Expand description

Returns the result of left or right future, preferring left if both are ready.