24 releases

0.3.21 Feb 6, 2022
0.3.19 Dec 18, 2021
0.3.18 Nov 23, 2021
0.3.16 Jul 23, 2021
0.2.0-beta Mar 20, 2018

#657 in Asynchronous

Download history 575714/week @ 2022-03-15 582036/week @ 2022-03-22 612742/week @ 2022-03-29 600836/week @ 2022-04-05 572143/week @ 2022-04-12 601331/week @ 2022-04-19 594503/week @ 2022-04-26 583073/week @ 2022-05-03 577524/week @ 2022-05-10 581967/week @ 2022-05-17 516580/week @ 2022-05-24 570837/week @ 2022-05-31 621707/week @ 2022-06-07 621169/week @ 2022-06-14 620351/week @ 2022-06-21 525393/week @ 2022-06-28

2,495,595 downloads per month
Used in 13,051 crates (154 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.45 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