33 releases

0.3.30 Dec 24, 2023
0.3.29 Oct 26, 2023
0.3.28 Mar 30, 2023
0.3.25 Oct 20, 2022
0.2.0-beta Mar 20, 2018

#10 in Concurrency

Download history 1307543/week @ 2023-11-21 1523513/week @ 2023-11-28 1549146/week @ 2023-12-05 1478060/week @ 2023-12-12 1226785/week @ 2023-12-19 900714/week @ 2023-12-26 1478747/week @ 2024-01-02 1619775/week @ 2024-01-09 1771887/week @ 2024-01-16 1759815/week @ 2024-01-23 1940639/week @ 2024-01-30 1817597/week @ 2024-02-06 1784220/week @ 2024-02-13 1905352/week @ 2024-02-20 1934759/week @ 2024-02-27 1580138/week @ 2024-03-05

7,516,430 downloads per month
Used in 25,766 crates (281 directly)

MIT/Apache

110KB
1.5K SLoC

futures-channel

Channels for asynchronous communication using futures-rs.

Usage

Add this to your Cargo.toml:

[dependencies]
futures-channel = "0.3"

The current futures-channel requires Rust 1.56 or later.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

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.


lib.rs:

Asynchronous channels.

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 std or alloc feature of this library is activated, and it is activated by default.

Dependencies