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

#76 in Concurrency

Download history 2051934/week @ 2024-08-20 1964999/week @ 2024-08-27 2108934/week @ 2024-09-03 2030388/week @ 2024-09-10 2071710/week @ 2024-09-17 2214605/week @ 2024-09-24 2611713/week @ 2024-10-01 2920593/week @ 2024-10-08 2833849/week @ 2024-10-15 2488388/week @ 2024-10-22 2277824/week @ 2024-10-29 2226010/week @ 2024-11-05 2285657/week @ 2024-11-12 2284453/week @ 2024-11-19 2002641/week @ 2024-11-26 1916791/week @ 2024-12-03

8,849,387 downloads per month
Used in 32,296 crates (355 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