Skip to content

Instantly share code, notes, and snippets.

@DamienBell
Created April 14, 2014 15:02
Show Gist options
  • Save DamienBell/10656066 to your computer and use it in GitHub Desktop.
Save DamienBell/10656066 to your computer and use it in GitHub Desktop.
Basic template for executing a series of async functions on an array before calling an onComplete function
//var async = require('async');
async.forEach([],
function(arg, callback){
//do this for each item in list
//then
callback(null);
},
//completion
function(err){
//on complete
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment