Skip to content

Instantly share code, notes, and snippets.

@bpanahij
Created October 23, 2012 20:27
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 bpanahij/3941318 to your computer and use it in GitHub Desktop.
Save bpanahij/3941318 to your computer and use it in GitHub Desktop.
Asyn Pattern Anonymous Function
var lineFunctions = [];
matches.forEach(function (match) {
lineFunctions.push(
function (callback) {
//some function
});
});
async.parallel(lineFunctions, function (allResults) {
console.log(allResults);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment