Skip to main content

stop_requested

Function stop_requested 

Source
pub fn stop_requested() -> Result<impl Future<Output = ()> + Send + 'static>
Expand description

Register for SIGINT and SIGTERM now; the future completes at the first of them.