Part of elisa.core.utils.cancellable_defer View In Hierarchy
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 |
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.