Module lockfree::channel::mpsc

source ·
Expand description

A lock-free Multi-Producer-Single-Consumer (MPSC) FIFO channel.

Re-exports

pub use super::NoRecv;
pub use super::RecvErr;
pub use super::RecvErr::*;

Structs

The Receiver handle of a MPSC channel. Created by create function.
The Sender handle of a MPSC channel. Created by create function. It is clonable and does not require mutability.

Functions

Creates an asynchronous lock-free Multi-Producer-Single-Consumer (MPSC) channel. In order to allow multiple producers, Sender is clonable and does not require mutability.