Function bicoro::broadcast

source ·
pub fn broadcast<'a, I, OA, OB, A, B>(
    first: Coroutine<'a, I, OA, A>,
    second: Coroutine<'a, I, OB, B>
) -> BroadcastRoutine<'a, I, OA, OB, A, B>where
    I: Clone,
    A: Send,
    B: Send,
    OA: Send,
    OB: Send,
Expand description

Sends inputs to both coroutines, and will emit outputs together

This is a more generic form of dispatch in which we want inputs send to both routines always