2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-02-28 15:19:41 +00:00

Prepare for v0.99.0

This commit is contained in:
Stjepan Glavina 2019-08-16 16:54:39 +02:00
parent f4ff5443c8
commit 3c42ecab8f

View file

@ -44,9 +44,10 @@
//! let mut buf = vec![]; //! let mut buf = vec![];
//! //!
//! io::timeout(Duration::from_secs(5), async { //! io::timeout(Duration::from_secs(5), async {
//! stream.read_to_end(&mut buf).await? //! stream.read_to_end(&mut buf).await?;
//! Ok(buf) //! Ok(buf)
//! }) //! })
//! .await
//! } //! }
//! //!
//! fn main() { //! fn main() {