auto-async
Auto magically resolves async dependencies on the fly. In addition to what async.auto
and autorun
does, auto-async does resolve all the possible async tasks by not stopping on the first error.
Usage
var autoAsync = ;;
Code
var autoAsync = ; var asyncDef = { console; ; } b: 'a' { console; ; } c: 'b' { console; ; }; ;
continueOnError
continueOnError flag controls if the async resolution should stop on the first error or continue to resolve as many async tasks as possible.
autoAsync(asyncDef, function onResponse(err, results, state) {
// err - in case graph fails
// results - all possible resolved nodes
// state - status of each node err/response
}, true);