Skip to content

Instantly share code, notes, and snippets.

@cbradwell
Created February 2, 2016 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cbradwell/f11b8ac68b86af9fbac3 to your computer and use it in GitHub Desktop.
Save cbradwell/f11b8ac68b86af9fbac3 to your computer and use it in GitHub Desktop.
var async = require('async');
async.eachSeries(array, function(item, callback){
callAsyncFunction(item);
async.eachSeries(arrayTwo, function(sItem, sCallback){
count++;
callAnotherAsyncFunction(item + sItem)
sCallback();
}
}, function(sErr){
if(sErr){console.log(sErr);}
});
callback();
}, function(err){
if(err){console.log(err);}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment