3 unstable releases

0.2.0 Mar 23, 2021
0.1.1 Mar 22, 2021
0.1.0 Mar 5, 2021
Download history 127/week @ 2021-07-04 159/week @ 2021-07-11 87/week @ 2021-07-18 85/week @ 2021-07-25 56/week @ 2021-08-01 66/week @ 2021-08-08 43/week @ 2021-08-15 118/week @ 2021-08-22 37/week @ 2021-08-29 73/week @ 2021-09-05 16/week @ 2021-09-12 166/week @ 2021-09-19 20/week @ 2021-09-26 76/week @ 2021-10-03 150/week @ 2021-10-10 10/week @ 2021-10-17

118 downloads per month
Used in 31 crates (2 directly)

MIT/Apache

11KB
204 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

~0.8–1.3MB
~27K SLoC