Skip to content

Instantly share code, notes, and snippets.

@voronoipotato
Created July 19, 2017 18:09
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 voronoipotato/4378163375496d42579a1004333f141b to your computer and use it in GitHub Desktop.
Save voronoipotato/4378163375496d42579a1004333f141b to your computer and use it in GitHub Desktop.
async.map(myUrls, function(url, callback) {
request(url, function(error, response, html) {
// Some processing is happening here before the callback is invoked
callback(error, html);
});
}, function(err, results) {
...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment