# 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`](http://github.com/jbr/swansong), which uses this crate.
* [API Docs][docs] [![docs.rs docs][docs-badge]][docs]
* [Releases][releases] [![crates.io version][version-badge]][crate]
* [Contributing][contributing]
* [CI ![CI][ci-badge]][ci]
* [API docs for main][main-docs]
* [![codecov](https://codecov.io/gh/jbr/stopper/graph/badge.svg?token=TEBHK217BT)][codecov]
[ci]: https://github.com/jbr/stopper/actions?query=workflow%3ACI
[ci-badge]: https://github.com/jbr/stopper/workflows/CI/badge.svg
[releases]: https://github.com/jbr/stopper/releases
[docs]: https://docs.rs/stopper
[contributing]: https://github.com/jbr/stopper/blob/main/.github/CONTRIBUTING.md
[crate]: https://crates.io/crates/stopper
[docs-badge]: https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square
[version-badge]: https://img.shields.io/crates/v/stopper.svg?style=flat-square
[main-docs]: https://jbr.github.io/stopper/stopper/
[codecov]: https://codecov.io/gh/jbr/stopper
## 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.