Trait deno_core::CancelFuture [−][src]
pub trait CancelFuture where
Self: Future + Sized, {
fn or_cancel<H: RcLike<CancelHandle>>(
self,
cancel_handle: H
) -> Cancelable<Self>ⓘNotable traits for Cancelable<F>impl<F: Future> Future for Cancelable<F> type Output = Result<F::Output, Canceled>;
{ ... }
}
Provided methods
fn or_cancel<H: RcLike<CancelHandle>>(
self,
cancel_handle: H
) -> Cancelable<Self>ⓘNotable traits for Cancelable<F>impl<F: Future> Future for Cancelable<F> type Output = Result<F::Output, Canceled>;
Notable traits for Cancelable<F>
impl<F: Future> Future for Cancelable<F> type Output = Result<F::Output, Canceled>;