10 releases

0.2.7 Mar 24, 2024
0.2.6 Mar 8, 2024
0.2.4 Jan 23, 2024
0.2.3 Nov 23, 2023
0.1.1 Mar 22, 2021

#261 in Asynchronous

Download history 1852/week @ 2024-01-22 1425/week @ 2024-01-29 1784/week @ 2024-02-05 1407/week @ 2024-02-12 1143/week @ 2024-02-19 945/week @ 2024-02-26 1408/week @ 2024-03-04 1363/week @ 2024-03-11 2163/week @ 2024-03-18 2192/week @ 2024-03-25 2469/week @ 2024-04-01 1979/week @ 2024-04-08 1024/week @ 2024-04-15 1015/week @ 2024-04-22 1115/week @ 2024-04-29 1220/week @ 2024-05-06

4,449 downloads per month
Used in 51 crates (3 directly)

MIT/Apache

14KB
242 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

~580KB