Function channel

Source
pub fn channel<T: Sync>(
    platform: &dyn Platform,
    allocator: &'static LinearAllocator<'_>,
    capacity: usize,
) -> Option<(Sender<T>, Receiver<T>)>
Expand description

Creates a single-producer single-consumer channel.