mirror of https://github.com/smol-rs/async-dup
Update smol to 1
This commit is contained in:
parent
84cd8e706e
commit
49ab18e9b6
|
@ -18,4 +18,4 @@ simple-mutex = "1.1.5"
|
|||
|
||||
[dev-dependencies]
|
||||
futures = { version = "0.3.5", default-features = false, features = ["std"] }
|
||||
smol = "0.1.10"
|
||||
smol = "1"
|
||||
|
|
|
@ -19,9 +19,9 @@
|
|||
//! use smol::Async;
|
||||
//! use std::net::TcpStream;
|
||||
//!
|
||||
//! # fn main() -> std::io::Result<()> { smol::run(async {
|
||||
//! # fn main() -> std::io::Result<()> { smol::block_on(async {
|
||||
//! // A client that echoes messages back to the server.
|
||||
//! let stream = Async::<TcpStream>::connect("127.0.0.1:8000").await?;
|
||||
//! let stream = Async::<TcpStream>::connect(([127, 0, 0, 1], 8000)).await?;
|
||||
//!
|
||||
//! // Create two handles to the stream.
|
||||
//! let reader = Arc::new(stream);
|
||||
|
|
Loading…
Reference in New Issue