AsyncGate. Wait for multiple tasks to finish before moving forward.

github.com/getify/asyncGate.js

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

July 2013
  • updating README to indicate DEPRECATION
December 2012
  • more tweaks to call/apply 'this' bindings, non-breaking.
  • tweaking the 'this' bindings on some calls, non-breaking change
  • v0.6.0: added the ability to defer a gate trigger (create a sub-gate)
August 2012
  • fixing minor omission of a necessary ;. take that, anti-semicolon folks.
  • minor update to README
  • tweaking README examples
  • v0.5.1: fixed some bugs with 'abort()'
  • tweaking README
  • v0.5: added 'abort()' functionality
  • v0.4.1: minor tweak to code organization, updating some tests
  • v0.4: fixed some bugs, added 'message passing', added 'failure callba…
July 2012
  • v0.3: fixing bug with immediately completed gate, removed 'add()' and…
February 2012
  • tweaking README
  • updating README with 'add()' description and example.
  • adding minified version of file
  • adding 'add' API function for adding a trigger function to the gate.
October 2011
  • fixing weird whitespace mismatching
  • updating with better "flatten_array" implementation, thanks to @notma…
  • initial v0.1