signal

Function signal 

pub fn signal() -> (Signal, Shutdown)
Available on crate feature tasks only.
Expand description

Create a channel pair that’s used to propagate shutdown event