๐ฌThis is a nightly-only experimental API. (
mpmc_channel #126840)Expand description
Bounded channel based on a preallocated array.
This flavor has a fixed, positive capacity.
The implementation is based on Dmitry Vyukovโs bounded MPMC queue.
Source:
Re-exportsยง
use super::context::Context;๐Experimental use super::select::Operation;๐Experimental use super::select::Selected;๐Experimental use super::select::Token;๐Experimental use super::utils::Backoff;๐Experimental use super::utils::CachePadded;๐Experimental use super::waker::SyncWaker;๐Experimental use crate::cell::UnsafeCell;๐use crate::mem::MaybeUninit;๐use crate::ptr;๐use crate::sync::atomic;๐use crate::sync::atomic::Atomic;๐Experimental use crate::sync::atomic::AtomicUsize;๐use crate::sync::atomic::Ordering;๐use crate::time::Instant;๐use super::error::*;๐Experimental
Structsยง
- Array
Token ๐Experimental - The token type for the array flavor.
- Channel ๐
Experimental - Bounded channel based on a preallocated array.
- Slot ๐
Experimental - A slot in a channel.