stopper

Crates.iostopper
lib.rsstopper
version0.2.8
sourcesrc
created_at2021-03-05 02:35:11.546393
updated_at2024-05-30 22:30:19.170506
descriptionan async stream and future stopper mechanism
homepage
repositoryhttps://github.com/jbr/stopper
max_upload_size
id364109
size41,553
Jacob Rothstein (jbr)

documentation

README

stopper

Stopper is an async concurrency primitive to stop both streams and futures. This was created to facilitate graceful shutdown in a http framework, but likely has utility beyond that.

For a more complete graceful shutdown story, see Swansong, which uses this crate.

Safety

This crate uses #![deny(unsafe_code)].

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 this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Commit count: 56

cargo fmt