Skip to content

Commit dba4166

Browse files
yoshuawuytsStjepan Glavina
authored and
Stjepan Glavina
committed
1.2.0 (#589)
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
1 parent 6800566 commit dba4166

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

CHANGELOG.md

+40
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,46 @@ and this project adheres to [Semantic Versioning](https://book.async.rs/overview
77

88
## [Unreleased]
99

10+
# [1.2.0] - 2019-11-28
11+
12+
[API Documentation](https://docs.rs/async-std/1.2.0/async-std)
13+
14+
This patch includes some minor quality-of-life improvements, introduces a
15+
new `Stream::unzip` API, and adds verbose errors to our networking types.
16+
17+
This means if you can't connect to a socket, you'll never have to wonder again
18+
*which* address it was you couldn't connect to, instead of having to go through
19+
the motions to debug what the address was.
20+
21+
## Example
22+
23+
Unzip a stream of tuples into two collections:
24+
25+
```rust
26+
use async_std::prelude::*;
27+
use async_std::stream;
28+
29+
let s = stream::from_iter(vec![(1,2), (3,4)]);
30+
31+
let (left, right): (Vec<_>, Vec<_>) = s.unzip().await;
32+
33+
assert_eq!(left, [1, 3]);
34+
assert_eq!(right, [2, 4]);
35+
```
36+
37+
## Added
38+
39+
- Added `Stream::unzip` as "unstable".
40+
- Added verbose errors to the networking types.
41+
42+
## Changed
43+
44+
- Enabled CI on master branch.
45+
46+
## Fixed
47+
48+
- Fixed the docs and `Debug` output of `BufWriter`.
49+
1050
# [1.1.0] - 2019-11-21
1151

1252
[API Documentation](https://docs.rs/async-std/1.1.0/async-std)

0 commit comments

Comments
 (0)