new_pair

Function new_pair 

Source
pub fn new_pair<T>() -> (Canceler<T>, Receiver<T>)
Available on crate feature std only.
Expand description

Creates and returns a cooperative cancellation pair.

For more information, see the module documentation.