Skip to main content

channel

Function channel 

Source
pub fn channel<T: Send + 'static>(
    capacity: usize,
) -> (ChannelProducer<T>, ChannelConsumer<T>)
Expand description

Create a bounded in-process queue with room for capacity pending items.