Skip to content

Commit d2c0c65

Browse files
authored
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 #126840). This PR is meant to supersede #140158 due to it's inactivity. It is essentially the same addition structured a little differently.
2 parents 7910391 + 7cf3556 commit d2c0c65

File tree

1 file changed

+4
-3
lines changed
  • library/std/src/sync/mpmc

1 file changed

+4
-3
lines changed

library/std/src/sync/mpmc/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
//! * [`Sender`]
77
//! * [`Receiver`]
88
//!
9-
//! [`Sender`]s are used to send data to a set of [`Receiver`]s. Both
10-
//! sender and receiver are cloneable (multi-producer) such that many threads can send
11-
//! simultaneously to receivers (multi-consumer).
9+
//! [`Sender`]s are used to send data to a set of [`Receiver`]s where each item
10+
//! sent is delivered to (at most) one receiver. Both sender and receiver are
11+
//! cloneable (multi-producer) such that many threads can send simultaneously
12+
//! to receivers (multi-consumer).
1213
//!
1314
//! These channels come in two flavors:
1415
//!

0 commit comments

Comments
 (0)