Created
October 29, 2015 21:31
-
-
Save wonderdogone/368256ee5a647f0ca07b 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
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