reactions
v0.0.13
Published
A library of methods for creating function (context, next), where next is a function (error, result)
Downloads
216
Readme
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.