@@ -7,6 +7,59 @@ and this project adheres to [Semantic Versioning](https://book.async.rs/overview
77
88## [ Unreleased]
99
10+ # [ 0.99.9] - 2019-10-08
11+
12+ This patch upgrades our ` futures-rs ` version, allowing us to build on the 1.39
13+ beta. Additionally we've introduced ` map ` and ` for_each ` to ` Stream ` . And we've
14+ added about a dozen new ` FromStream ` implementations for ` std ` types, bringing
15+ us up to par with std's ` FromIterator ` implementations.
16+
17+ And finally we've added a new "unstable" ` task::blocking ` function which can be
18+ used to convert blocking code into async code using a threadpool. We've been
19+ using this internally for a while now to async-std to power our ` fs ` and
20+ ` net::SocketAddr ` implementations. With this patch userland code now finally has
21+ access to this too.
22+
23+ ## Example
24+
25+ __ Create a stream of tuples, and collect into a hashmap__
26+ ``` rust
27+ let a = stream :: once (1u8 );
28+ let b = stream :: once (0u8 );
29+
30+ let s = a . zip (b );
31+
32+ let map : HashMap <u8 , u8 > = s . collect (). await ;
33+ assert_eq! (map . get (& 1 ), Some (& 0u8 ));
34+ ```
35+
36+ __ Spawn a blocking task on a dedicated threadpool__
37+ ``` rust
38+ task :: blocking (async {
39+ println! (" long-running task here" );
40+ }). await ;
41+ ```
42+
43+ ## Added
44+
45+ - Added ` stream::Stream::map `
46+ - Added ` stream::Stream::for_each `
47+ - Added ` stream::Stream::try_for_each `
48+ - Added ` task::blocking ` as "unstable"
49+ - Added ` FromStream ` for all ` std::{option, collections, result, string, sync} ` types.
50+ - Added the ` path ` submodule as "unstable".
51+
52+ ## Changed
53+
54+ - Updated ` futures-preview ` to ` 0.3.0-alpha.19 ` , allowing us to build on ` rustc 1.39.0-beta ` .
55+ - As a consequence of this upgrade, all of our concrete stream implementations
56+ now make use of ` Stream::size_hint ` to optimize internal allocations.
57+ - We now use GitHub Actions through [ actions-rs] ( https://github.com/actions-rs ) ,
58+ in addition to Travis CI. We intend to fully switch in the near future.
59+ - Fixed a bug introduced in 0.99.6 where Unix Domain Listeners would sometimes become unresponsive.
60+ - Updated our ` sync::Barrier ` docs to match std.
61+ - Updated our ` stream::FromStream ` docs to match std's ` FromIterator ` .
62+
1063# [ 0.99.8] - 2019-09-28
1164
1265## Added
@@ -130,7 +183,8 @@ and this project adheres to [Semantic Versioning](https://book.async.rs/overview
130183
131184- Initial beta release
132185
133- [ Unreleased ] : https://github.com/async-rs/async-std/compare/v0.99.8...HEAD
186+ [ Unreleased ] : https://github.com/async-rs/async-std/compare/v0.99.9...HEAD
187+ [ 0.99.9 ] : https://github.com/async-rs/async-std/compare/v0.99.8...v0.99.9
134188[ 0.99.8 ] : https://github.com/async-rs/async-std/compare/v0.99.7...v0.99.8
135189[ 0.99.7 ] : https://github.com/async-rs/async-std/compare/v0.99.6...v0.99.7
136190[ 0.99.6 ] : https://github.com/async-rs/async-std/compare/v0.99.5...v0.99.6
0 commit comments