Expand description
Asynchronous signal handling.
§Examples
Print on “ctrl-c” notification.
use compio_signal::ctrl_c;
ctrl_c().await.unwrap();
println!("ctrl-c received!");
Modules§
- windows
Windows - Windows-specific types for signal handling.
Functions§
- ctrl_c
- Completes when a “ctrl-c” notification is sent to the process.