@@ -7,6 +7,40 @@ and this project adheres to [Semantic Versioning](https://book.async.rs/overview
7
7
8
8
## [ Unreleased]
9
9
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
+
10
44
# [ 1.3.0] - 2019-12-12
11
45
12
46
[ API Documentation] ( https://docs.rs/async-std/1.3.0/async-std )
@@ -604,6 +638,7 @@ task::blocking(async {
604
638
- Initial beta release
605
639
606
640
[ 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
607
642
[ 1.3.0 ] : https://github.com./async-rs/async-std/compare/v1.2.0...v1.3.0
608
643
[ 1.2.0 ] : https://github.com./async-rs/async-std/compare/v1.1.0...v1.2.0
609
644
[ 1.1.0 ] : https://github.com./async-rs/async-std/compare/v1.0.1...v1.1.0
0 commit comments