Rollup merge of #150021 - david-d-h:main, r=ChrisDenton
document that mpmc channels deliver an item to (at most) one receiver Tiny documentation change related to mpmc (tracking issue rust-lang/rust#126840). This PR is meant to supersede rust-lang/rust#140158 due to it's inactivity. It is essentially the same addition structured a little differently.
This commit is contained in:
commit
2739ccb2b1
1 changed files with 4 additions and 3 deletions
|
|
@ -6,9 +6,10 @@
|
|||
//! * [`Sender`]
|
||||
//! * [`Receiver`]
|
||||
//!
|
||||
//! [`Sender`]s are used to send data to a set of [`Receiver`]s. Both
|
||||
//! sender and receiver are cloneable (multi-producer) such that many threads can send
|
||||
//! simultaneously to receivers (multi-consumer).
|
||||
//! [`Sender`]s are used to send data to a set of [`Receiver`]s where each item
|
||||
//! sent is delivered to (at most) one receiver. Both sender and receiver are
|
||||
//! cloneable (multi-producer) such that many threads can send simultaneously
|
||||
//! to receivers (multi-consumer).
|
||||
//!
|
||||
//! These channels come in two flavors:
|
||||
//!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue