pub fn select_ret<T>(
f1: impl Future<Output = T> + Unpin,
f2: impl Future<Output = T> + Unpin,
) -> impl Future<Output = T> + Unpin
Expand description
Selects between two futures and returns the output from the one that completes first. This function accepts two futures and, using a combinator, races them to yield the result of the first future that resolves.