Function cros_async::complete3
source · pub async fn complete3<F1, F2, F3>(
f1: F1,
f2: F2,
f3: F3
) -> (F1::Output, F2::Output, F3::Output)
Expand description
Creates a combinator that runs the three given futures to completion, returning a tuple of the outputs each yields.
§Example
use cros_async::{complete3, block_on};
let first = async {5};
let second = async {6};
let third = async {7};
assert_eq!(block_on(complete3(first, second, third)), (5,6,7));