|0.1.3||Aug 19, 2022|
|0.1.2||May 27, 2022|
|0.1.1||May 26, 2022|
|0.1.0||Feb 1, 2022|
#428 in Asynchronous
966 downloads per month
Tiny crate that allows to wait for a stop signal across multiple threads. Helpful mostly in server applications that run indefinitely and need a signal for graceful shutdowns.
tokio-shutdown to your project with
cargo add tokio-shutdown (needs cargo-edit) or add it
manually to your
[dependencies] tokio-shutdown = "<latest-version>"
In addition, you will need to use the lastest tokio runtime to use this library, as it uses async/await and is bound to this runtime.
For examples check out the basic and streaming, or consult the docs.
This project is licensed under MIT License (or http://opensource.org/licenses/MIT).