Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 50cefce

Browse files
Merge pull request #561 from async-rs/1.1.0
1.1.0
2 parents c9a2e74 + 3780ff7 commit 50cefce

File tree

2 files changed

+71
-2
lines changed

2 files changed

+71
-2
lines changed

‎CHANGELOG.md

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,74 @@ 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+
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+
1078
# [1.0.1] - 2019年11月12日
1179

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

443511
- Initial beta release
444512

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
446515
[1.0.1]: https://github.com/async-rs/async-std/compare/v1.0.0...v1.0.1
447516
[1.0.0]: https://github.com/async-rs/async-std/compare/v0.99.12...v1.0.0
448517
[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)

AltStyle によって変換されたページ (->オリジナル) /