11 releases
0.2.8 | May 30, 2024 |
---|---|
0.2.7 | Mar 24, 2024 |
0.2.4 | Jan 23, 2024 |
0.2.3 | Nov 23, 2023 |
0.1.1 | Mar 22, 2021 |
#221 in Asynchronous
2,234 downloads per month
Used in 51 crates
(3 directly)
15KB
290 lines
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.
Dependencies
~0.5–24MB
~345K SLoC