sync: flatten module structure.

This commit is contained in:
Dario Nieuwenhuis
2022-08-22 22:00:06 +02:00
parent 21072bee48
commit 5677b13a86
19 changed files with 18 additions and 21 deletions

View File

@ -373,7 +373,7 @@ where
/// Establish a new bounded channel. For example, to create one with a NoopMutex:
///
/// ```
/// use embassy_sync::channel::mpmc::Channel;
/// use embassy_sync::channel::Channel;
/// use embassy_sync::blocking_mutex::raw::NoopRawMutex;
///
/// // Declare a bounded channel of 3 u32s.

View File

@ -1,5 +0,0 @@
//! Async channels
pub mod mpmc;
pub mod pubsub;
pub mod signal;

View File

@ -14,4 +14,6 @@ pub mod blocking_mutex;
pub mod channel;
pub mod mutex;
pub mod pipe;
pub mod pubsub;
pub mod signal;
pub mod waitqueue;

View File

@ -34,8 +34,8 @@ pub use subscriber::{DynSubscriber, Subscriber};
///
/// ```
/// # use embassy_sync::blocking_mutex::raw::NoopRawMutex;
/// # use embassy_sync::channel::pubsub::WaitResult;
/// # use embassy_sync::channel::pubsub::PubSubChannel;
/// # use embassy_sync::pubsub::WaitResult;
/// # use embassy_sync::pubsub::PubSubChannel;
/// # use futures_executor::block_on;
/// # let test = async {
/// // Create the channel. This can be static as well

View File

@ -19,7 +19,7 @@ use core::task::{Context, Poll, Waker};
/// Signals are generally declared as `static`s and then borrowed as required.
///
/// ```
/// use embassy_sync::channel::signal::Signal;
/// use embassy_sync::signal::Signal;
///
/// enum SomeCommand {
/// On,