Module signal
Asynchronous signal handling for Tokio.
Note that signal handling is in general a very tricky topic and should be used with great care. This crate attempts to implement 'best practice' for signal handling, but it should be evaluated for your own applications' needs to see if it's suitable.
There are some fundamental limitations of this crate documented on the OS specific structures, as well.
Examples
Print on "ctrl-c" notification.
use signal;
async
Wait for SIGHUP on Unix
#
Modules
- unix Unix-specific types for signal handling.