Constructordojo.DeferredList

dojo.require("dojo.DeferredList");
defined in dojo/DeferredList.js

DeferredList takes an array of existing deferreds and returns a new deferred of its own this new deferred will typically have its callback fired when all of the deferreds in the given list have fired their own deferreds. The parameters fireOnOneCallback and

Usage

function (/*Array*/ list, /*Boolean?*/ fireOnOneCallback, /*Boolean?*/ fireOnOneErrback, /*Boolean?*/ consumeErrors, /*Function?*/ canceller) (view source)
parametertypedescription
listArrayThe list of deferreds to be synchronizied with this DeferredList
fireOnOneCallbackBooleanOptional. Will cause the DeferredLists callback to be fired as soon as any of the deferreds in its list have been fired instead of waiting until the entire list has finished fireonOneErrback: Will cause the errback to fire upon any of the deferreds errback
fireOnOneErrbackBooleanOptional. will fire before all the deferreds as appropriate
consumeErrorsBooleanOptional.
cancellerFunctionOptional. A deferred canceller function, see dojo.Deferred

Jump to PropertiesFunctionsBack to top

Defined by dojo.Deferred
Add the same function as both a callback and an errback as the next element on the callback sequence.This is useful for code that you want to guarantee to run, e.g. a finalizer.
Defined by dojo.Deferred
Add a single callback to the end of the callback sequence.
FunctionaddCallbacks(cb, eb)
Defined by dojo.Deferred
Add separate callback and errback to the end of the callback sequence.
FunctionaddErrback(cb, cbfn)
Defined by dojo.Deferred
Add a single callback to the end of the callback sequence.
Functioncallback(res)
Defined by dojo.Deferred
Begin the callback sequence with a non-error value.
Defined by dojo.Deferred
Cancels a Deferred that has not yet received a value, or is waiting on another Deferred as its value.
Functionerrback(res: Error)
Defined by dojo.Deferred
Begin the callback sequence with an error result.
FunctiongatherResults(deferredList)
Gathers the results of the deferreds for packaging as the parameters to the Deferred Lists' callback
Function_cbDeferred(index, succeeded, result)
The DeferredLists' callback handler
Defined by dojo.Deferred
Defined by dojo.Deferred
Used internally to exhaust the callback sequence when a result is available.
Function_resback(res)
Defined by dojo.Deferred
The private primitive that means either callback or errback

Jump to FunctionsPropertiesBack to top

Overrides dojo.Deferred
deferred canceller function, see dojo.Deferred
cause the DeferredLists callback to be fired as soon as any of the deferreds in its list have been fired instead of waiting until the entire list has finished fireonOneErrback: Will cause the errback to fire upon any of the deferreds errback
fire before all the deferreds as appropriate
Overrides dojo.Deferred
list of deferreds to be synchronizied with this DeferredList