Created
June 19, 2014 18:19
-
-
Save hub-cap/4e7c4a9347d30acfbf51 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Obj.prototype.doSeries(cb) { | |
var state = {} | |
async.series([ | |
this.doA.bind(this, state), | |
this.doB.bind(this, state), | |
this.doC.bind(this, state), | |
], function(err, result) { | |
cb(err, result); | |
// do i need to state = null here? | |
// will that even help? | |
}); | |
} | |
// and then do a bunch of | |
someObj.doSeries(function(err, res){}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment