Commit cb29cec5 authored by yann300's avatar yann300

series call in tracemanager

parent 02c13f56
...@@ -281,4 +281,16 @@ TraceManager.prototype.checkRequestedStep = function (stepIndex) { ...@@ -281,4 +281,16 @@ TraceManager.prototype.checkRequestedStep = function (stepIndex) {
return undefined return undefined
} }
TraceManager.prototype.waterfall = function (calls, stepindex, cb) {
var ret = []
var retError = null
for (var call in calls) {
call.apply(this, [stepindex, function (error, result) {
retError = error
ret.push({ error: error, value: result })
}])
}
cb(retError, ret)
}
module.exports = TraceManager module.exports = TraceManager
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment