Skip to main content

channel

Function channel 

Source
pub fn channel<C, U>(
    cfg: Config,
) -> (ControlSender<C>, UserSender<U>, Consumer<C, U>)
Expand description

Build a two-lane priority channel: an unbounded control lane and a bounded user lane feeding one Consumer.

ยงPanics

Panics when the rounded user capacity exceeds the live u32 ticket window.