Function crtq::channel[][src]

pub fn channel<T>(
    producers: usize,
    consumers: usize
) -> (Producer<T>, Consumer<T>)

Returns a producer and consumer for an unbounded MPMC wait-free queue.

The value of producers indicates the maximum number of clones allowed of the initial producer. The value of consumers indicates the maximum number of clones allowed of the initial consumer.