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

Download history 899/week @ 2024-07-21 877/week @ 2024-07-28 902/week @ 2024-08-04 818/week @ 2024-08-11 522/week @ 2024-08-18 619/week @ 2024-08-25 651/week @ 2024-09-01 794/week @ 2024-09-08 449/week @ 2024-09-15 465/week @ 2024-09-22 695/week @ 2024-09-29 191/week @ 2024-10-06 400/week @ 2024-10-13 488/week @ 2024-10-20 739/week @ 2024-10-27 597/week @ 2024-11-03

2,234 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–24MB
~345K SLoC