1 unstable release
Uses old Rust 2015
0.1.0 | Oct 25, 2017 |
---|
#8 in #unbounded-channel
81 downloads per month
Used in 8 crates
(2 directly)
21KB
247 lines
Async Slot
Documentation | Github | Crate
An unbounded channel that only stores last value sent made for futures.
Features:
- Compacts memory (only last value is kept)
- Has
poll_cancel
andis_canceled
- Single-producer/single-consumer
- Never has backpressure (because value is just replaced)
- Replaced value can be recovered if using
swap
method. Sync
, so if multi-producer is desired,Sender
can be wrapped into anArc
/Rc
andswap
method is used to update value.
License
Licensed under either of
- Apache License, Version 2.0, (./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (./LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
Contribution
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.
Dependencies
~54KB