ctrlc-handler

Crates.ioctrlc-handler
lib.rsctrlc-handler
version0.1.2
sourcesrc
created_at2022-01-20 17:26:14.287341
updated_at2022-03-18 15:43:33.98612
descriptionHelper for using the ctrlc crate
homepagehttps://github.com/sonicrules1234/ctrlc-handler
repositoryhttps://github.com/sonicrules1234/ctrlc-handler
max_upload_size
id517758
size4,765
Westly Ward (sonicrules1234)

documentation

README

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
}
Commit count: 2

cargo fmt