Skip to content

Commit 7315aed

Browse files
committed
1.1.0
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
1 parent 3bc4d29 commit 7315aed

File tree

2 files changed

+56
-2
lines changed

2 files changed

+56
-2
lines changed

CHANGELOG.md

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,59 @@ and this project adheres to [Semantic Versioning](https://book.async.rs/overview
77

88
## [Unreleased]
99

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+
1063
# [1.0.1] - 2019-11-12
1164

1265
[API Documentation](https://docs.rs/async-std/1.0.1/async-std)
@@ -442,7 +495,8 @@ task::blocking(async {
442495

443496
- Initial beta release
444497

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
446500
[1.0.1]: https://github.com/async-rs/async-std/compare/v1.0.0...v1.0.1
447501
[1.0.0]: https://github.com/async-rs/async-std/compare/v0.99.12...v1.0.0
448502
[0.99.12]: https://github.com/async-rs/async-std/compare/v0.99.11...v0.99.12

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "async-std"
3-
version = "1.0.1"
3+
version = "1.1.0"
44
authors = [
55
"Stjepan Glavina <stjepang@gmail.com>",
66
"Yoshua Wuyts <yoshuawuyts@gmail.com>",

0 commit comments

Comments
 (0)