Crates.io | tokio-shutdown |
lib.rs | tokio-shutdown |
version | |
source | src |
created_at | 2022-02-01 07:54:41.967268 |
updated_at | 2024-12-08 11:54:16.079564 |
description | Wait for a stop signal across multiple threads |
homepage | https://github.com/dnaka91/tokio-shutdown |
repository | https://github.com/dnaka91/tokio-shutdown |
max_upload_size | |
id | 525062 |
Cargo.toml error: | TOML parse error at line 25, column 1 | 25 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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.
Add tokio-shutdown
to your project with cargo add tokio-shutdown
(needs cargo-edit) or add it
manually to your Cargo.toml
:
[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).