Skip to content

Instantly share code, notes, and snippets.

@veyselsahin
Last active May 31, 2017 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veyselsahin/a1c2172410054fe104b5734f3ec7c855 to your computer and use it in GitHub Desktop.
Save veyselsahin/a1c2172410054fe104b5734f3ec7c855 to your computer and use it in GitHub Desktop.
async.series({
one: function(callback){
setTimeout(function(){
callback(null, 1);
}, 200);
},
two: function(callback){
setTimeout(function(){
callback(null, 2);
}, 100);
}
},
function(err, results) {
//sonuc {one: 1, two: 2}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment