Skip to content
Eugene Lazutkin edited this page Mar 19, 2016 · 3 revisions

Module Deferred-ext returns async.Deferred adding algorithms from composition algorithms, and seq() as constructor properties instrumented to use Deferred:

  • Deferred.all()
  • Deferred.par()
  • Deferred.any()
  • Deferred.one()
  • Deferred.race()
  • Deferred.seq()

Additionally all() and race() are copied to Deferred.Wrapper:

  • Deferred.Wrapper.all()
  • Deferred.Wrapper.race()

Just like their generic counterparts, all functions can accept arguments in the following form, yet continue to use Deferred:

var promise = Deferred.all(val1, ... valN);