An implementation of Unix signal handling for Tokio
First, add this to your Cargo.toml
:
[dependencies]
tokio-signal = { git = "https://github.com/alexcrichton/tokio-signal" }
Next, add this to your crate:
extern crate tokio_signal;
tokio-signal
is primarily distributed under the terms of both the MIT
license and the Apache License (Version 2.0), with portions covered by various
BSD-like licenses.
See LICENSE-APACHE, and LICENSE-MIT for details.