Function select_ret3

Source
pub fn select_ret3<T>(
    f1: impl Future<Output = T> + Unpin,
    f2: impl Future<Output = T> + Unpin,
    f3: impl Future<Output = T> + Unpin,
) -> impl Future<Output = T>
Expand description

Returns a future that resolves with the output of the first among three given futures to complete. This function concurrently races the three input futures and awaits the one that finishes first, effectively combining them into a single asynchronous computation whose result is that of the first completed future.