rust-cli / team

CLI working group
https://rust-cli.github.io/book
MIT License
294 stars 34 forks source link

Make signals-{ctrlc,hooked} examples demonstratble #117

Closed crodjer closed 4 years ago

crodjer commented 5 years ago

By introducing a little sleep, it makes it possible to actually interrupt the examples when running:

cargo run --bin signals-{ctrlc,hooked}
killercup commented 4 years ago

Merged with added comments and fixed includes.