Skip to main content

channel

Function channel 

Source
pub fn channel<T: Send + 'static>(
    buffer_size: usize,
) -> (Producer<T>, AsyncConsumer<T>)
Expand description

Creates a bounded channel with blocking sender and async receiver.