@@ -7,6 +7,40 @@ and this project adheres to [Semantic Versioning](https://book.async.rs/overview
77
88## [ Unreleased]
99
10+ # [ 1.4.0] - 2019-12-20
11+
12+ [ API Documentation] ( https://docs.rs/async-std/1.4.0/async-std )
13+
14+ This patch adds ` Future::timeout ` , providing a method counterpart to the
15+ ` future::timeout ` free function. And includes several bug fixes around missing
16+ APIs. Notably we're not shipping our new executor yet, first announced [ on our
17+ blog] ( https://async.rs/blog/stop-worrying-about-blocking-the-new-async-std-runtime/ ) .
18+
19+ ## Examples
20+
21+ ``` rust
22+ use async_std :: prelude :: * ;
23+ use async_std :: future;
24+ use std :: time :: Duration ;
25+
26+ let fut = future :: pending :: <()>(); // This future will never resolve.
27+ let res = fut . timeout (Duration :: from_millis (100 )). await ;
28+ assert! (res . is_err ()); // The future timed out, returning an err.
29+ ```
30+
31+ ## Added
32+
33+ - Added ` Future::timeout ` as "unstable" [ (#600 )] ( https://github.com/async-rs/async-std/pull/600 )
34+
35+ ## Fixes
36+
37+ - Fixed a doc test and enabled it on CI [ (#597 )] ( https://github.com/async-rs/async-std/pull/597 )
38+ - Fixed a rendering issue with the ` stream ` submodule documentation [ (#621 )] ( https://github.com/async-rs/async-std/pull/621 )
39+ - ` Write::write_fmt ` 's future is now correctly marked as ` #[must_use] ` [ (#628 )] ( https://github.com/async-rs/async-std/pull/628 )
40+ - Fixed the missing ` io::Bytes ` export [ (#633 )] ( https://github.com/async-rs/async-std/pull/633 )
41+ - Fixed the missing ` io::Chain ` export [ (#633 )] ( https://github.com/async-rs/async-std/pull/633 )
42+ - Fixed the missing ` io::Take ` export [ (#633 )] ( https://github.com/async-rs/async-std/pull/633 )
43+
1044# [ 1.3.0] - 2019-12-12
1145
1246[ API Documentation] ( https://docs.rs/async-std/1.3.0/async-std )
@@ -604,6 +638,7 @@ task::blocking(async {
604638- Initial beta release
605639
606640[ Unreleased ] : https://github.com/async-rs/async-std/compare/v1.3.0...HEAD
641+ [ 1.4.0 ] : https://github.com/async-rs/async-std/compare/v1.3.0...v1.4.0
607642[ 1.3.0 ] : https://github.com/async-rs/async-std/compare/v1.2.0...v1.3.0
608643[ 1.2.0 ] : https://github.com/async-rs/async-std/compare/v1.1.0...v1.2.0
609644[ 1.1.0 ] : https://github.com/async-rs/async-std/compare/v1.0.1...v1.1.0
0 commit comments