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

#223 in Asynchronous

Download history 2282/week @ 2024-03-31 2151/week @ 2024-04-07 1066/week @ 2024-04-14 995/week @ 2024-04-21 1083/week @ 2024-04-28 1292/week @ 2024-05-05 944/week @ 2024-05-12 958/week @ 2024-05-19 1382/week @ 2024-05-26 1218/week @ 2024-06-02 1502/week @ 2024-06-09 1186/week @ 2024-06-16 901/week @ 2024-06-23 548/week @ 2024-06-30 812/week @ 2024-07-07 881/week @ 2024-07-14

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

MIT/Apache

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–25MB
~344K SLoC