[][src]Function kyansel::cancellable

Important traits for Cancellable<F, S>
pub fn cancellable<Fut1, Fut2>(
    inner: Fut1,
    stopper: Fut2
) -> Cancellable<Fut1, Fut2> where
    Fut1: Future,
    Fut2: Future

Creates a new Cancellable

This is essentially the same as FutureCancellable::cancel_with, the difference being that this is a function instead of a method