Skip to main content

register_handler

Function register_handler 

Source
pub fn register_handler() -> Result<()>
Expand description

Registers the Ctrl+C handler that sets the cancellation flag.

Must be called once before any long-running operation. Additional calls are safe and silently ignored.