race

Function race 

Source
pub async fn race<A, B, F1, F2>(f1: F1, f2: F2) -> Either<A, B> 
where F1: Future<Output = A>, F2: Future<Output = B>,
Expand description

This function has been renamed to select; please see its documentation. This function remains to maintain compatibility with the online versions of the book that use the name race.