sigterm 0.3.10

Signal-aware async control and cancellation primitives for Tokio.
Documentation
1
2
3
4
5
6
7
8
/* examples/simple.rs */

#[tokio::main]
async fn main() {
	println!("Running... Press Ctrl+C to stop");
	sigterm::wait().await;
	println!("Goodbye!");
}