dojox/lang/async (version 1.10)

See the dojox/lang/async reference documentation for more information.

Method Summary

  • any(x) Executes functions in parallel.
  • ifThen(cond,ifTrue,ifFalse) Executes a condition, waits for it if necessary, and executes one of two functions.
  • loop(cond,body) Executes a condition, waits for it if necessary, and executes the body, if truthy value was returned.
  • par(x) Executes functions in parallel.
  • select(cond,x) Executes a condition, waits for it if necessary, and executes Nth function from list.
  • seq(x) Executes functions sequentially.

Methods

any(x)
Defined by dojox/lang/async

Executes functions in parallel. As soon as one of them finishes cancels the rest.

Parameter Type Description
x undefined
ifThen(cond,ifTrue,ifFalse)
Defined by dojox/lang/async

Executes a condition, waits for it if necessary, and executes one of two functions.

Parameter Type Description
cond undefined
ifTrue undefined
ifFalse undefined
loop(cond,body)
Defined by dojox/lang/async

Executes a condition, waits for it if necessary, and executes the body, if truthy value was returned. Then it repeats the cycle until the condition function returns a falsy value.

Parameter Type Description
cond undefined
body undefined
par(x)
Defined by dojox/lang/async

Executes functions in parallel. Waits for all of them to finish.

Parameter Type Description
x undefined
select(cond,x)
Defined by dojox/lang/async

Executes a condition, waits for it if necessary, and executes Nth function from list.

Parameter Type Description
cond undefined
x undefined
seq(x)
Defined by dojox/lang/async

Executes functions sequentially. Waits if any of them returns Deferred.

Parameter Type Description
x undefined
Error in the documentation? Can’t find what you are looking for? Let us know!