Skip to content

Instantly share code, notes, and snippets.

@hub-cap
Created June 19, 2014 18:19
Show Gist options
  • Save hub-cap/4e7c4a9347d30acfbf51 to your computer and use it in GitHub Desktop.
Save hub-cap/4e7c4a9347d30acfbf51 to your computer and use it in GitHub Desktop.
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