Function npnc::bounded::spsc::channel[][src]

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

Returns a producer and consumer for a bounded SPSC wait-free queue.

Panics

  • size is not a power of two