Skip to content

Instantly share code, notes, and snippets.

@danared
Created June 23, 2015 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save danared/d81d389bbbcc748568fe to your computer and use it in GitHub Desktop.
Save danared/d81d389bbbcc748568fe to your computer and use it in GitHub Desktop.
actionArray = [
function one(cb) {
someAsyncFunction(params, function(err, results) {
if (err) {
cb(new Error(“There was an error”));
}
console.log(“one”);
cb(null);
});
},
function two(cb) {
console.log(“two”);
cb(null);
}
]
async.series(actionArray);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment