Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a2f5859

Browse files
Merge pull request #984 from cagatay-y/master
doc: update docs to fit the move of channels from the sync module
2 parents 5640a7f + 3a26fb3 commit a2f5859

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

‎src/channel.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
//! Channels
2+
//!
3+
//! Multi-producer, multi-consumer queues, used for message-based
4+
//! communication. Can provide a lightweight inter-task synchronisation
5+
//! mechanism, at the cost of some extra memory.
26
37
#[doc(inline)]
48
pub use async_channel::*;

‎src/sync/mod.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,6 @@
129129
//! to reach a point in the program, before continuing execution all
130130
//! together.
131131
//!
132-
//! - [`channel`]: Multi-producer, multi-consumer queues, used for
133-
//! message-based communication. Can provide a lightweight
134-
//! inter-task synchronisation mechanism, at the cost of some
135-
//! extra memory.
136-
//!
137132
//! - [`Mutex`]: Mutual exclusion mechanism, which ensures that at
138133
//! most one task at a time is able to access some data.
139134
//!
@@ -142,6 +137,9 @@
142137
//! writer at a time. In some cases, this can be more efficient than
143138
//! a mutex.
144139
//!
140+
//! If you're looking for channels, check out
141+
//! [`async_std::channel`][crate::channel].
142+
//!
145143
//! [`Arc`]: struct.Arc.html
146144
//! [`Barrier`]: struct.Barrier.html
147145
//! [`channel`]: fn.channel.html

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /