2 releases
0.1.2 | Mar 18, 2022 |
---|---|
0.1.1 | Jan 20, 2022 |
#13 in #ctrl-c
Used in sonicbot-matrix
4KB
How to use
Run a loop until CTRL-C is pushed:
use ctrlc_handler::CtrlCHandler;
let handler = CtrlCHandler::new();
while handler.should_continue() {
// Do stuff here
}
Dependencies
~1.8–8.5MB
~78K SLoC