pub fn select_ret5<T>(
f1: impl Future<Output = T> + Unpin,
f2: impl Future<Output = T> + Unpin,
f3: impl Future<Output = T> + Unpin,
f4: impl Future<Output = T> + Unpin,
f5: impl Future<Output = T> + Unpin,
) -> impl Future<Output = T>
Expand description
Returns a future that yields the output of the earliest completed one among five provided futures.
Selects five futures to run concurrently and returns a new future that resolves with the value from the first future to complete. This utility function chains the selections to ultimately combine all five inputs into a single asynchronous operation without blocking for the slower ones.