Skip to content

Instantly share code, notes, and snippets.

@danared
Created April 15, 2015 16:41
Show Gist options
  • Select an option

  • Save danared/a1a611dbb901a0f732b6 to your computer and use it in GitHub Desktop.

Select an option

Save danared/a1a611dbb901a0f732b6 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);
}]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment