Crates.io | ctrlc-handler |
lib.rs | ctrlc-handler |
version | 0.1.2 |
source | src |
created_at | 2022-01-20 17:26:14.287341 |
updated_at | 2022-03-18 15:43:33.98612 |
description | Helper for using the ctrlc crate |
homepage | https://github.com/sonicrules1234/ctrlc-handler |
repository | https://github.com/sonicrules1234/ctrlc-handler |
max_upload_size | |
id | 517758 |
size | 4,765 |
Run a loop until CTRL-C is pushed:
use ctrlc_handler::CtrlCHandler;
let handler = CtrlCHandler::new();
while handler.should_continue() {
// Do stuff here
}