@@ -7,6 +7,74 @@ 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
+ Furthermore our ` path ` submodule now returns more context in errors. So if
19
+ opening a file fails, async-std will tell you * which* file was failed to open,
20
+ making it easier to write and debug programs.
21
+
22
+ ## Examples
23
+
24
+ ``` rust
25
+ let start = Instant :: now ();
26
+
27
+ let mut s = stream :: interval (Duration :: from_millis (5 ))
28
+ . throttle (Duration :: from_millis (10 ))
29
+ . take (2 );
30
+
31
+ s . next (). await ;
32
+ assert! (start . elapsed (). as_millis () >= 5 );
33
+
34
+ s . next (). await ;
35
+ assert! (start . elapsed (). as_millis () >= 15 );
36
+
37
+ s . next (). await ;
38
+ assert! (start . elapsed (). as_millis () >= 25 );
39
+ ```
40
+
41
+ ## Added
42
+
43
+ - Added ` Stream::throttle ` as "unstable".
44
+ - Added ` Stream::count ` as "unstable".
45
+ - Added ` Stream::max ` as "unstable".
46
+ - Added ` Stream::successors ` as "unstable".
47
+ - Added ` Stream::by_ref ` as "unstable".
48
+ - Added ` Stream::partition ` as "unstable".
49
+ - Added contextual errors to the ` path ` submodule.
50
+ - Added ` os::windows::symlink_dir ` as "unstable".
51
+ - Added ` os::windows::symlink_file ` as "unstable".
52
+ - Stabilized ` task::yield_now ` .
53
+
54
+ ## Fixes
55
+
56
+ - We now ignore seek errors when rolling back failed ` read ` calls on ` File ` .
57
+ - Fixed a bug where ` Stream::max_by_key ` was returning the wrong result.
58
+ - Fixed a bug where ` Stream::min_by_key ` was returning the wrong result.
59
+
60
+ ## Changed
61
+
62
+ - Applied various fixes to the tutorial.
63
+ - Fixed an issue with Clippy.
64
+ - Optimized an internal code generation macro, improving compilation speeds.
65
+ - Removed an ` Unpin ` bound from ` stream::Once ` .
66
+ - Removed various extra internal uses of ` pin_mut! ` .
67
+ - Simplified ` Stream::any ` and ` Stream::all ` 's internals.
68
+ - The ` surf ` example is now enabled again.
69
+ - Tweaked some streams internals.
70
+ - Updated ` futures-timer ` to 2.0.0, improving compilation speed.
71
+ - Upgraded ` async-macros ` to 2.0.0.
72
+ - ` Stream::merge ` now uses randomized ordering to reduce overall latency.
73
+ - The scheduler is now more efficient by keeping a slot for the next task to
74
+ run. This is similar to Go's scheduler, and Tokio's scheduler.
75
+ - Fixed the documentation of the ` channel ` types to link back to the ` channel `
76
+ function.
77
+
10
78
# [ 1.0.1] - 2019-11-12
11
79
12
80
[ API Documentation] ( https://docs.rs/async-std/1.0.1/async-std )
@@ -442,7 +510,8 @@ task::blocking(async {
442
510
443
511
- Initial beta release
444
512
445
- [ Unreleased ] : https://github.com/async-rs/async-std/compare/v1.0.1...HEAD
513
+ [ Unreleased ] : https://github.com/async-rs/async-std/compare/v1.1.0...HEAD
514
+ [ 1.1.0 ] : https://github.com/async-rs/async-std/compare/v1.0.1...v1.1.0
446
515
[ 1.0.1 ] : https://github.com/async-rs/async-std/compare/v1.0.0...v1.0.1
447
516
[ 1.0.0 ] : https://github.com/async-rs/async-std/compare/v0.99.12...v1.0.0
448
517
[ 0.99.12 ] : https://github.com/async-rs/async-std/compare/v0.99.11...v0.99.12
0 commit comments