# Class e.c.u.c.CancellableDeferred(defer.Deferred):

Part of elisa.core.utils.cancellable_defer View In Hierarchy

see `twisted.internet.defer.Deferred`.

When creating this Deferred, you may provide a canceller function, which will be called by d.cancel() to let you do any cleanup necessary if the user decides not to wait for the deferred to complete.

Line # | Kind | Name | Docs
--- | --- | --- | ---
82 | Method | __init__ | Undocumented
86 | Method | cancel | Cancel this deferred.

def __init__(self, canceller=None):
Undocumented
def cancel(self):

Cancel this deferred.

If the deferred is waiting on another deferred, forward the cancellation to the other deferred.

If the deferred has not yet been errback'd/callback'd, call the canceller function provided to the constructor. If that function does not do a callback/errback, or if no canceller function was provided, errback with CancelledError.

Otherwise, raise AlreadyCalledError.