Skip to main content

register

Function register 

Source
pub fn register(f: impl Fn() + Send + Sync + 'static)
Expand description

Registers a cleanup function to be executed when a Ctrl-C signal is received.