mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
Merge pull request #2660 from embassy-rs/zerocopy-docs
docs: clarify capabilities of zerocopy channel
This commit is contained in:
commit
60567b72fb
@ -1,10 +1,7 @@
|
|||||||
//! A zero-copy queue for sending values between asynchronous tasks.
|
//! A zero-copy queue for sending values between asynchronous tasks.
|
||||||
//!
|
//!
|
||||||
//! It can be used concurrently by multiple producers (senders) and multiple
|
//! It can be used concurrently by a producer (sender) and a
|
||||||
//! consumers (receivers), i.e. it is an "MPMC channel".
|
//! consumer (receiver), i.e. it is an "SPSC channel".
|
||||||
//!
|
|
||||||
//! Receivers are competing for messages. So a message that is received by
|
|
||||||
//! one receiver is not received by any other.
|
|
||||||
//!
|
//!
|
||||||
//! This queue takes a Mutex type so that various
|
//! This queue takes a Mutex type so that various
|
||||||
//! targets can be attained. For example, a ThreadModeMutex can be used
|
//! targets can be attained. For example, a ThreadModeMutex can be used
|
||||||
|
Loading…
Reference in New Issue
Block a user