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 2066686/week @ 2024-08-12 2051559/week @ 2024-08-19 2059944/week @ 2024-08-26 1992438/week @ 2024-09-02 2061517/week @ 2024-09-09 2024821/week @ 2024-09-16 2148358/week @ 2024-09-23 2480980/week @ 2024-09-30 3017316/week @ 2024-10-07 2845825/week @ 2024-10-14 2517325/week @ 2024-10-21 2320498/week @ 2024-10-28 2271807/week @ 2024-11-04 2256119/week @ 2024-11-11 2277217/week @ 2024-11-18 1870134/week @ 2024-11-25

8,799,265 downloads per month
Used in 31,992 crates (351 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