Trait futures_concurrency::future::Race
source · pub trait Race {
type Output;
type Future: Future<Output = Self::Output>;
fn race(self) -> Self::Future;
}
Expand description
Wait for the first future to complete.
Awaits multiple futures simultaneously, returning the output of the first future which completes.