Created
April 15, 2015 18:55
-
-
Save peterzawistowicz/4345a4f05e42b8bb0ac3 to your computer and use it in GitHub Desktop.
This file contains 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
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