Trait Cancellable
pinky_swear
pub trait Cancellable<E> { pub fn cancel(&self, err: E); }
Sometimes you just cannot keep your Promises.
pub fn cancel(&self, err: E)
Cancel the Promise you made, explaining why with an Error.
impl<T, E> Cancellable<E> for Pinky<Result<T, E>>