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 86d3d74

Browse files
Merge pull request #637 from async-rs/v1.4.0
1.4.0
2 parents 0d4b4cd + 3fd6d8b commit 86d3d74

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

‎CHANGELOG.md‎

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

88
## [Unreleased]
99

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+
1044
# [1.3.0] - 2019年12月12日
1145

1246
[API Documentation](https://docs.rs/async-std/1.3.0/async-std)
@@ -604,6 +638,7 @@ task::blocking(async {
604638
- Initial beta release
605639

606640
[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
607642
[1.3.0]: https://github.com/async-rs/async-std/compare/v1.2.0...v1.3.0
608643
[1.2.0]: https://github.com/async-rs/async-std/compare/v1.1.0...v1.2.0
609644
[1.1.0]: https://github.com/async-rs/async-std/compare/v1.0.1...v1.1.0

‎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.3.0"
3+
version = "1.4.0"
44
authors = [
55
"Stjepan Glavina <stjepang@gmail.com>",
66
"Yoshua Wuyts <yoshuawuyts@gmail.com>",

0 commit comments

Comments
(0)

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