| Crates.io | vss |
| lib.rs | vss |
| version | 0.1.1 |
| created_at | 2023-12-29 18:38:24.209363+00 |
| updated_at | 2024-11-26 19:12:52.684341+00 |
| 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,428 |
shutdown_signalThis 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();
}