mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
sync: polish and update API doc examples (#1398)
- Remove `poll_*` fns from some of the sync types. - Move `AtomicWaker` and `Lock` to the root of the `sync` crate.
This commit is contained in:
@@ -27,10 +27,13 @@ macro_rules! if_fuzz {
|
||||
}}
|
||||
}
|
||||
|
||||
pub mod lock;
|
||||
mod lock;
|
||||
mod loom;
|
||||
pub mod mpsc;
|
||||
pub mod oneshot;
|
||||
pub mod semaphore;
|
||||
pub mod task;
|
||||
mod task;
|
||||
pub mod watch;
|
||||
|
||||
pub use lock::{Lock, LockGuard};
|
||||
pub use task::AtomicWaker;
|
||||
|
||||
Reference in New Issue
Block a user