Function bicoro::unicast

source ·
pub fn unicast<'a, IA, IB, OA, OB, A, B>(
    first: Coroutine<'a, IA, OA, A>,
    second: Coroutine<'a, IB, OB, B>
) -> Coroutine<'a, UnicastSelect<IA, IB>, UnicastSelect<OA, OB>, DispatchResult<'a, IA, IB, OA, OB, A, B>>where
    OA: Send,
    OB: Send,
    A: Send,
    B: Send,
Expand description

Run two co-routines, sharing inputs depending on selector.

This can be thought of as running them almost in parralel. Selector will route the input as needed to coroutines a and b This variant must send inputs to either first or second it does not share them. See dispatch if you need to share values