diff options
| author | binarycat <binarycat@envs.net> | 2024-11-10 13:22:58 -0600 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2024-11-10 13:22:58 -0600 |
| commit | ae3c68db344f26d79c0a133a1a46c7929b1ea9ad (patch) | |
| tree | e4773a588669acdbd9a7fad0e48c3c603e27859e /library/std/src/sync/mpmc | |
| parent | 7028d9318fadc20e5e3058d52e44d785d31a6aaa (diff) | |
| download | rust-ae3c68db344f26d79c0a133a1a46c7929b1ea9ad.tar.gz rust-ae3c68db344f26d79c0a133a1a46c7929b1ea9ad.zip | |
split up the first paragraph of doc comments for better summaries
Diffstat (limited to 'library/std/src/sync/mpmc')
| -rw-r--r-- | library/std/src/sync/mpmc/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/sync/mpmc/mod.rs b/library/std/src/sync/mpmc/mod.rs index 44e146a89ba..0cf4902d6d5 100644 --- a/library/std/src/sync/mpmc/mod.rs +++ b/library/std/src/sync/mpmc/mod.rs @@ -153,6 +153,7 @@ use crate::panic::{RefUnwindSafe, UnwindSafe}; use crate::time::{Duration, Instant}; /// Creates a new asynchronous channel, returning the sender/receiver halves. +/// /// All data sent on the [`Sender`] will become available on the [`Receiver`] in /// the same order as it was sent, and no [`send`] will block the calling thread /// (this channel has an "infinite buffer", unlike [`sync_channel`], which will @@ -201,6 +202,7 @@ pub fn channel<T>() -> (Sender<T>, Receiver<T>) { } /// Creates a new synchronous, bounded channel. +/// /// All data sent on the [`Sender`] will become available on the [`Receiver`] /// in the same order as it was sent. Like asynchronous [`channel`]s, the /// [`Receiver`] will block until a message becomes available. `sync_channel` |
