|0.3.25||Oct 20, 2022|
|0.3.21||Feb 6, 2022|
|0.3.19||Dec 18, 2021|
|0.2.0-beta||Mar 20, 2018|
#13 in Asynchronous
3,257,243 downloads per month
Used in 16,401 crates (183 directly)
Channels for asynchronous communication using futures-rs.
Add this to your
[dependencies] futures-channel = "0.3"
futures-channel requires Rust 1.45 or later.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Like threads, concurrent tasks sometimes need to communicate with each other. This module contains two basic abstractions for doing so:
- [oneshot], a way of sending a single value from one task to another.
- [mpsc], a multi-producer, single-consumer channel for sending values between tasks, analogous to the similarly-named structure in the standard library.
All items are only available when the
alloc feature of this
library is activated, and it is activated by default.