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.
This crate uses #![deny(unsafe_code)]
.
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.