mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
io: call tcp.set_nonblocking(true)
in AsyncFd
example. (#4292)
This commit is contained in:
parent
65fb0210d5
commit
d764ba5816
@ -81,6 +81,7 @@ use std::{task::Context, task::Poll};
|
||||
///
|
||||
/// impl AsyncTcpStream {
|
||||
/// pub fn new(tcp: TcpStream) -> io::Result<Self> {
|
||||
/// tcp.set_nonblocking(true)?;
|
||||
/// Ok(Self {
|
||||
/// inner: AsyncFd::new(tcp)?,
|
||||
/// })
|
||||
|
Loading…
x
Reference in New Issue
Block a user