#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

#1376 in Asynchronous

Download history 18259/week @ 2025-11-03 13210/week @ 2025-11-10 8490/week @ 2025-11-17 10180/week @ 2025-11-24 7334/week @ 2025-12-01 5839/week @ 2025-12-08 4950/week @ 2025-12-15 990/week @ 2025-12-22 1567/week @ 2025-12-29 4136/week @ 2026-01-05 13306/week @ 2026-01-12 9034/week @ 2026-01-19 7746/week @ 2026-01-26 14028/week @ 2026-02-02 8327/week @ 2026-02-09 13708/week @ 2026-02-16

43,901 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–5MB
~78K SLoC