Function select_ret4

Source
pub fn select_ret4<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,
) -> impl Future<Output = T>
Expand description

Returns the output of the first completed future among four concurrently evaluated futures. This function accepts four futures as parameters and returns a new future that resolves with the result of the first future to complete, ensuring a non-blocking selection process.