Created
April 14, 2014 15:02
-
-
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
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
//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