Function select_some

Source
async fn select_some<T>(
    a: impl Future<Output = Option<T>> + Unpin,
    b: impl Future<Output = Option<T>> + Unpin,
) -> Option<T>
Expand description

Get the result of the first future to return Some, if either do.