Skip to content

Instantly share code, notes, and snippets.

@wonderdogone
Created October 29, 2015 21:31
Show Gist options
  • Save wonderdogone/368256ee5a647f0ca07b to your computer and use it in GitHub Desktop.
Save wonderdogone/368256ee5a647f0ca07b to your computer and use it in GitHub Desktop.
async.series([
function(callback){
// do some stuff ...
callback(null, 'one');
},
function(callback){
// do some more stuff ...
callback(null, 'two');
}
],
// optional callback
function(err, results){
// results is now equal to ['one', 'two']
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment