Function bicoro::tuple

source ·
pub fn tuple<'a, I, O, R1, R2>(
    first: Coroutine<'a, I, O, R1>,
    second: Coroutine<'a, I, O, R2>
) -> Coroutine<'a, I, O, (R1, R2)>where
    R1: Send,
    R2: Send,
    O: Send,
Expand description

Runs two coroutines sequentially

This will run first until it completes, then second afterwards until it completes Returns both return results tupled together