## terminal-wait-exit
wait user exit terminal, like Ctrl+C.
# Usage
cargo.toml
```
terminal-wait-exit = "1.0"
```
```rust
#[tokio::main]
async fn main() {
// Spawn the server into a runtime
tokio::spawn(async move {
// work
server.serve(service).await;
});
if let Err(e) = terminal-wait-exit::wait_exit().await {
error!("Listening exit failed.{:?}", e);
}
stop_graceful();
}
```