async-slot 0.1.0

An asynchronous (futures-based) channel that only preserves last value sent
Documentation
  • Coverage
  • 100%
    17 out of 17 items documented3 out of 15 items with examples
  • Size
  • Source code size: 44.4 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.71 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tailhook

Async Slot

Documentation | Github | Crate

An unbounded channel that only stores last value sent made for futures.

Features:

  1. Compacts memory (only last value is kept)
  2. Has poll_cancel and is_canceled
  3. Single-producer/single-consumer
  4. Never has backpressure (because value is just replaced)
  5. Replaced value can be recovered if using swap method.
  6. Sync, so if multi-producer is desired, Sender can be wrapped into an Arc/Rc and swap method is used to update value.

License

Licensed under either of

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.