Created
August 12, 2014 01:54
-
-
Save DrkSephy/801a44e3af4a70098119 to your computer and use it in GitHub Desktop.
async.each example
This file contains hidden or 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
async.each(urls, function(url, callback){ | |
console.log("Grabbing Dataset from " + url); | |
makeRequest(url, function(){ | |
callback(); | |
}); | |
}, function(err){ | |
console.log("Hello"); | |
if(err){ | |
console.log("Error grabbing data"); | |
} else { | |
console.log("Finished processing all data"); | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
adadwda bonda kusiwalala
sam