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.
122 Method _startRunCallbacks Undocumented
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.

def _startRunCallbacks(self, result):
Undocumented
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.