Function futures_micro::prelude::or[][src]

pub fn or<F1, F2>(future1: F1, future2: F2) -> Or<F1, F2>

Notable traits for Or<F1, F2>

impl<T, F1, F2> Future for Or<F1, F2> where
    F1: Future<Output = T>,
    F2: Future<Output = T>, 
type Output = T;
where
    F1: Future,
    F2: Future

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