No description or website provided.
JavaScript CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
doc
out
src
test
.gitignore
.jshintrc
.travis.yml
LICENSE
README.md
package.json

README.md

Reactions

Build Status

Reactions is a javascript (node and browser) library based around the

Reaction

  function (context, done)

and Done

  function (error, result)

For general purpose async helpers see caolan/async - An active project with good documentation

API:

jsdoc generated documentation

Reaction.fn & Reaction.make

Reactions.fn contains functions operating on Reaction functions and accepting initial context and done. For example

  Reactions.fn.parallel(arrayOfReactions, context, done);

while Reactions.make provide functions doing partial execution of the Reactions.fn ones. The result of the partial execution matches the Reaction function signature:

  var compositeReaction = Reactions.make.parallel(arrayOfReactions)
  compositeReaction(context, done);

Note: Reactions.make is automatically generated from Reactions.fn with the expectation that the last two arguments of all functions are context and done.