34 releases

0.3.31 Oct 5, 2024
0.3.30 Dec 24, 2023
0.3.29 Oct 26, 2023
0.3.28 Mar 30, 2023
0.2.0-beta Mar 20, 2018

#37 in Concurrency

Download history 2086557/week @ 2024-08-07 1972315/week @ 2024-08-14 2053679/week @ 2024-08-21 1939152/week @ 2024-08-28 2138686/week @ 2024-09-04 2009751/week @ 2024-09-11 2106730/week @ 2024-09-18 2266138/week @ 2024-09-25 2703253/week @ 2024-10-02 2807364/week @ 2024-10-09 2870955/week @ 2024-10-16 2486089/week @ 2024-10-23 2239296/week @ 2024-10-30 2214828/week @ 2024-11-06 2303125/week @ 2024-11-13 1876697/week @ 2024-11-20

9,091,626 downloads per month
Used in 31,710 crates (348 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