Skip to content

Commit

Permalink
Merge pull request async-rs#984 from cagatay-y/master
Browse files Browse the repository at this point in the history
doc: update docs to fit the move of channels from the sync module
  • Loading branch information
yoshuawuyts authored Aug 31, 2021
2 parents 5640a7f + 3a26fb3 commit a2f5859
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/channel.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
//! Channels
//!
//! Multi-producer, multi-consumer queues, used for message-based
//! communication. Can provide a lightweight inter-task synchronisation
//! mechanism, at the cost of some extra memory.
#[doc(inline)]
pub use async_channel::*;
8 changes: 3 additions & 5 deletions src/sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,6 @@
//! to reach a point in the program, before continuing execution all
//! together.
//!
//! - [`channel`]: Multi-producer, multi-consumer queues, used for
//! message-based communication. Can provide a lightweight
//! inter-task synchronisation mechanism, at the cost of some
//! extra memory.
//!
//! - [`Mutex`]: Mutual exclusion mechanism, which ensures that at
//! most one task at a time is able to access some data.
//!
Expand All @@ -142,6 +137,9 @@
//! writer at a time. In some cases, this can be more efficient than
//! a mutex.
//!
//! If you're looking for channels, check out
//! [`async_std::channel`][crate::channel].
//!
//! [`Arc`]: struct.Arc.html
//! [`Barrier`]: struct.Barrier.html
//! [`channel`]: fn.channel.html
Expand Down

0 comments on commit a2f5859

Please sign in to comment.