Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/randomairborne/vss

Simple graceful shutdowns for Axum
https://github.com/randomairborne/vss

Last synced: 20 days ago
JSON representation

Simple graceful shutdowns for Axum

Awesome Lists containing this project

README

        

# vss
### valkyrie_pilot's `shutdown_signal`

This is a very simple crate, made to be used with
axum's `graceful_shutdown` method, like so:

```rust
#[tokio::main]
async fn main() {
axum::serve(tcp, app)
.with_graceful_shutdown(vss::shutdown_signal())
.await
.unwrap();
}
```