@@ -7,6 +7,59 @@ and this project adheres to [Semantic Versioning](https://book.async.rs/overview
7
7
8
8
## [ Unreleased]
9
9
10
+ # [ 1.1.0] - 2019-11-21
11
+
12
+ [ API Documentation] ( https://docs.rs/async-std/1.1.0/async-std )
13
+
14
+ This patch introduces a faster scheduler algorithm, ` Stream::throttle ` , and
15
+ stabilizes ` task::yield_now ` . Additionally we're introducing several more stream
16
+ APIs, bringing us to almost complete parity with the standard library.
17
+
18
+ ## Examples
19
+
20
+ ``` rust
21
+ let start = Instant :: now ();
22
+
23
+ let mut s = stream :: interval (Duration :: from_millis (5 ))
24
+ . throttle (Duration :: from_millis (10 ))
25
+ . take (2 );
26
+
27
+ s . next (). await ;
28
+ assert! (start . elapsed (). as_millis () >= 5 );
29
+
30
+ s . next (). await ;
31
+ assert! (start . elapsed (). as_millis () >= 15 );
32
+
33
+ s . next (). await ;
34
+ assert! (start . elapsed (). as_millis () >= 25 );
35
+ ```
36
+
37
+ ## Added
38
+
39
+ - Added ` Stream::throttle ` as "unstable".
40
+ - Added ` Stream::count ` as "unstable".
41
+ - Added ` Stream::max ` as "unstable".
42
+ - Added ` Stream::successors ` as "unstable".
43
+ - Added ` Stream::by_ref ` as "unstable".
44
+ - Added ` Stream::partition ` as "unstable".
45
+
46
+ ## Changed
47
+
48
+ - ` Stream::merge ` now uses randomized ordering to reduce overall latency.
49
+ - Stabilized ` task::yield_now ` .
50
+ - The ` surf ` example is now enabled again.
51
+ - Upgraded ` async-macros ` to 2.0.0.
52
+ - Removed various extra internal uses of ` pin_mut! ` .
53
+ - Applied various fixes to the tutorial.
54
+ - The scheduler is now more efficient by keeping a slot for the next task to
55
+ run. This is similar to Go's scheduler, and Tokio's scheduler.
56
+ - Added a documentation backlink to the channel types.
57
+ - Updated ` futures-timer ` to 2.0.0, improving compilation speed.
58
+ - Optimized an internal code generation macro, improving compilation speeds.
59
+ - Removed an ` Unpin ` bound from ` stream::Once ` .
60
+ - Fixed a bug where ` Stream::max_by_key ` was returning the wrong result.
61
+ - Fixed a bug where ` Stream::min_by_key ` was returning the wrong result.
62
+
10
63
# [ 1.0.1] - 2019-11-12
11
64
12
65
[ API Documentation] ( https://docs.rs/async-std/1.0.1/async-std )
@@ -442,7 +495,8 @@ task::blocking(async {
442
495
443
496
- Initial beta release
444
497
445
- [ Unreleased ] : https://github.com/async-rs/async-std/compare/v1.0.1...HEAD
498
+ [ Unreleased ] : https://github.com/async-rs/async-std/compare/v1.1.0...HEAD
499
+ [ 1.1.0 ] : https://github.com/async-rs/async-std/compare/v1.0.1...v1.1.0
446
500
[ 1.0.1 ] : https://github.com/async-rs/async-std/compare/v1.0.0...v1.0.1
447
501
[ 1.0.0 ] : https://github.com/async-rs/async-std/compare/v0.99.12...v1.0.0
448
502
[ 0.99.12 ] : https://github.com/async-rs/async-std/compare/v0.99.11...v0.99.12
0 commit comments