0.0.13 • Published 12 years ago
reactions v0.0.13
Reactions
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(https://github.com/caolan/async Async) - An active project with good documentation
API:
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.
