# stopper

this is an effort at 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.

warning: this may have race conditions and has not been thoroughly vetted or used yet. it currently exists as a functional sketch of the interface i needed. if you use this, please file bug reports. i want this to be rock solid in the near future.

* [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]

[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/

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

## License

<sup>
Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
</sup>

<br/>

<sub>
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.
</sub>
