Crates.io | vss |
lib.rs | vss |
version | 0.1.0 |
source | src |
created_at | 2023-12-29 18:38:24.209363 |
updated_at | 2023-12-29 18:38:24.209363 |
description | A dead simple library to allow for easily reused shutdown signal handling |
homepage | |
repository | https://github.com/randomairborne/vss |
max_upload_size | |
id | 1083549 |
size | 3,193 |
shutdown_signal
This is a very simple crate, made to be used with
axum's graceful_shutdown
method, like so:
#[tokio::main]
async fn main() {
axum::serve(tcp, app)
.with_graceful_shutdown(vss::shutdown_signal())
.await
.unwrap();
}