Part of twisted.internet.defer View Source View In Hierarchy
DeferredListis a tool for collecting the results of several Deferreds.
This tracks a list of
their results, and makes a single callback when they have all completed.
By default, the ultimate result is a list of (success, result) tuples,
'success' being a boolean.
exposes the same API that
so callbacks and errbacks can be added to it in the same way.
is implemented by adding callbacks and errbacks to each
the list passed to it. This means callbacks and errbacks added to the
Deferreds before they are passed to
will change the result that
is not special). Callbacks and errbacks can also be added to the Deferreds
after they are passed to
may change the result that they see.
See the documentation for the
__init__ arguments for more
|Method||__init__||Initialize a DeferredList.|
|Method||_cbDeferred||(internal) Callback for when one of my deferreds fires.|
Inherited from Deferred:
|Instance Variable||called||A flag which is
|Instance Variable||paused||A counter of how many unmatched
|Method||addCallbacks||Add a pair of callbacks (success and error) to this
|Method||addCallback||Convenience method for adding just a callback.|
|Method||addErrback||Convenience method for adding just an errback.|
|Method||addBoth||Convenience method for adding a single callable as both a callback and an errback.|
|Method||callback||Run all success callbacks that have been added to this
|Method||errback||Run all error callbacks that have been added to this
|Method||pause||Stop processing on a
|Method||unpause||Process all callbacks made since
|Method||__str__||Return a string representation of this
|Instance Variable||_suppressAlreadyCalled||A flag used by the cancellation mechanism which is
|Instance Variable||_runningCallbacks||A flag which is
|Instance Variable||_chainedTo||If this Deferred is waiting for the result of another Deferred, this is a
reference to the other Deferred. Otherwise,
|Method||_continuation||Build a tuple of callback and errback with
|Method||_runCallbacks||Run the chain of callbacks once a result is available.|
Deferreds to track.
|Parameters||deferredList||The list of deferreds to track. (type: |
|fireOnOneCallback||(keyword param) a flag indicating that this |
|fireOnOneErrback||(keyword param) a flag indicating that this |
|consumeErrors||(keyword param) a flag indicating that failures in any of the included
has fired, including the case where the
fireOnOneErrback flag is set
fires because one
the list fires with a non-failure/failure result, do nothing in the