#graceful-shutdown #async-shutdown #async

shutdown-handler

A shutdown handler that allows all parts of an application to trigger a shutdown

2 releases

0.1.1 Apr 5, 2023
0.1.0 Mar 31, 2023

#1104 in Asynchronous

Download history 9196/week @ 2025-07-27 6497/week @ 2025-08-03 9458/week @ 2025-08-10 6333/week @ 2025-08-17 10692/week @ 2025-08-24 15917/week @ 2025-08-31 15807/week @ 2025-09-07 10274/week @ 2025-09-14 11945/week @ 2025-09-21 18089/week @ 2025-09-28 12719/week @ 2025-10-05 8389/week @ 2025-10-12 10742/week @ 2025-10-19 8939/week @ 2025-10-26 18259/week @ 2025-11-02 13200/week @ 2025-11-09

51,142 downloads per month
Used in carrot-cake

MIT/Apache

17KB
156 lines

shutdown-handler

A shutdown handler that allows all parts of an application to trigger a shutdown.

Crates.io Docs.rs CI

Installation

Add shutdown-handler to your dependencies

[dependencies]
# ...
shutdown-handler = "0.1.0"

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

See CONTRIBUTING.md.

Dependencies

~2–13MB
~103K SLoC