Function de_net::tasks::cancellation::cancellation
source · pub(super) fn cancellation() -> (CancellationSender, CancellationRecv)
Expand description
Creates a cancellation sender / receiver pair. Once the sender gets dropped, the receiver signals cancellation.