Channel clarification

This was unclear from the docs.
This commit is contained in:
Dion Dokter 2022-06-03 14:27:33 +02:00 committed by GitHub
parent 9d5af531e3
commit 9efaae495b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,9 @@
//! It can be used concurrently by multiple producers (senders) and multiple //! It can be used concurrently by multiple producers (senders) and multiple
//! consumers (receivers), i.e. it is an "MPMC channel". //! consumers (receivers), i.e. it is an "MPMC 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
//! for single-core Cortex-M targets where messages are only passed //! for single-core Cortex-M targets where messages are only passed