mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-28 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:
@@ -33,7 +33,7 @@ use tokio::{
|
||||
self,
|
||||
codec::{Framed, LinesCodec, LinesCodecError},
|
||||
net::{TcpListener, TcpStream},
|
||||
sync::{lock::Lock, mpsc},
|
||||
sync::{mpsc, Lock},
|
||||
};
|
||||
|
||||
#[tokio::main]
|
||||
|
||||
Reference in New Issue
Block a user