[−][src]Trait kyansel::FutureCancellable
An extension trait for Future
that provides the Cancellable
combinator.
Users are not expected to implement this trait. All types that implement
Future
already implement FutureCancellable
.
Provided methods
ⓘImportant traits for Cancellable<F, S>fn cancel_with<S>(self, stopper: S) -> Cancellable<Self, S> where
S: Future,
Self: Sized,
ⓘImportant traits for Cancellable<F, S>
S: Future,
Self: Sized,
Cancel this future if another one completes succesfully
Note that this function consumes the receiving future and returns a wrapped version of it