# Module e.c.u.cancellable_defer

Part of elisa.core.utils

No module docstring

Line # | Kind | Name | Docs
--- | --- | --- | ---
68 | Class | CancelledError | Undocumented
71 | Class | CancellableDeferred | see `twisted.internet.defer.Deferred`.
134 | Class | CancellableDeferredIterator | Undocumented
166 | Function | cancellable_deferred_iterator | Decorator for iterators that internally use cancellable deferreds. This
179 | Function | cancellable_coiterate | Wrapper around task.coiterate to iterate and return a usual

def cancellable_deferred_iterator(iterator):
Decorator for iterators that internally use cancellable deferreds. This one allows you to cancel the iterator operation and it propagates the cancel call to the deferred that is currently hold.

def cancellable_coiterate(iterator, *args, **kw):
Wrapper around task.coiterate to iterate and return a usual `CancellableDeferred` that can cancel the iteration.