Skip to content

Commit da795de

Browse files
authored
Merge pull request #399 from async-rs/release-0.99.11
v0.99.11
2 parents 2b1c6f0 + 2adaaa9 commit da795de

File tree

2 files changed

+60
-2
lines changed

2 files changed

+60
-2
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10+
# [0.99.11] - 2019-10-29
11+
12+
This patch introduces `async_std::sync::channel`, a novel asynchronous port of
13+
the ultra-fast Crossbeam channels. This has been one of the most anticipated
14+
features for async-std, and we're excited to be providing a first version of
15+
this!
16+
17+
In addition to channels, this patch has the regular list of new methods, types,
18+
and doc fixes.
19+
20+
## Examples
21+
22+
__Send and receive items from a channel__
23+
```rust
24+
// Create a bounded channel with a max-size of 1
25+
let (s, r) = channel(1);
26+
27+
// This call returns immediately because there is enough space in the channel.
28+
s.send(1).await;
29+
30+
task::spawn(async move {
31+
// This call blocks the current task because the channel is full.
32+
// It will be able to complete only after the first message is received.
33+
s.send(2).await;
34+
});
35+
36+
// Receive items from the channel
37+
task::sleep(Duration::from_secs(1)).await;
38+
assert_eq!(r.recv().await, Some(1));
39+
assert_eq!(r.recv().await, Some(2));
40+
```
41+
42+
## Added
43+
- Added `Future::delay` as "unstable"
44+
- Added `Stream::flat_map` as "unstable"
45+
- Added `Stream::flatten` as "unstable"
46+
- Added `Stream::product` as "unstable"
47+
- Added `Stream::sum` as "unstable"
48+
- Added `Stream::min_by_key`
49+
- Added `Stream::max_by`
50+
- Added `Stream::timeout` as "unstable"
51+
- Added `sync::channel` as "unstable".
52+
- Added doc links from instantiated structs to the methods that create them.
53+
- Implemented `Extend` + `FromStream` for `PathBuf`.
54+
55+
## Changed
56+
- Fixed an issue with `block_on` so it works even when nested.
57+
- Fixed issues with our Clippy check on CI.
58+
- Replaced our uses of `cfg_if` with our own macros, simplifying the codebase.
59+
- Updated the homepage link in `Cargo.toml` to point to [async.rs](https://async.rs).
60+
- Updated the module-level documentation for `stream` and `sync`.
61+
- Various typos and grammar fixes.
62+
- Removed redundant file flushes, improving the performance of `File` operations
63+
64+
## Removed
65+
Nothing was removed in this release.
66+
1067
# [0.99.10] - 2019-10-16
1168

1269
This patch stabilizes several core concurrency macros, introduces async versions
@@ -281,7 +338,8 @@ task::blocking(async {
281338

282339
- Initial beta release
283340

284-
[Unreleased]: https://github.com/async-rs/async-std/compare/v0.99.10...HEAD
341+
[Unreleased]: https://github.com/async-rs/async-std/compare/v0.99.11...HEAD
342+
[0.99.10]: https://github.com/async-rs/async-std/compare/v0.99.10...v0.99.11
285343
[0.99.10]: https://github.com/async-rs/async-std/compare/v0.99.9...v0.99.10
286344
[0.99.9]: https://github.com/async-rs/async-std/compare/v0.99.8...v0.99.9
287345
[0.99.8]: https://github.com/async-rs/async-std/compare/v0.99.7...v0.99.8

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "async-std"
3-
version = "0.99.10"
3+
version = "0.99.11"
44
authors = [
55
"Stjepan Glavina <[email protected]>",
66
"Yoshua Wuyts <[email protected]>",

0 commit comments

Comments
 (0)