6 releases
0.2.3 | Nov 23, 2023 |
---|---|
0.2.2 | Oct 26, 2023 |
0.2.0 | Mar 23, 2021 |
0.1.1 | Mar 22, 2021 |
#216 in Asynchronous
3,307 downloads per month
Used in 48 crates
(3 directly)
11KB
178 lines
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.
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
~570KB