Function continuation_cancel

Source
pub fn continuation_cancel<R, C: FutureCancellation>(
    cancellation: C,
) -> (Sender<R>, FutureCancel<R, C>)
Expand description

Creates a new continuation. Allows for a custom cancel implementation.

ยงParameters

  • cancellation - The cancellation implementation to use. You can use the crate::FutureCancellation trait to react to cancel events, or Drop to react to drop events (regardless of whether the future is cancelled).