A simple signal handler.
Calls a closure on SIGINT
/SIGTERM
on unixy systems or console control
Ctrl+C/Break or Close on Windows, where the intention is that the closure
should signal the application to shut down.
This crate is not intended to be used in production code -- it is meant to be
used in dev-dependencies
rather than dependencies
.