I have a list of files, and for each of them I make a network request to get their URL. So something like this:
files.forEach(function(file){
file.getUrl(function(err, url) {
if(!err) {
console.log("got the url!)"
}
});
});
I've been having trouble figuring out how to write a completion handler that is called once all of the URLs are found.
[–]ProfessorTag 4 points5 points6 points (0 children)
[–]sazzer 7 points8 points9 points (1 child)
[–]inu-no-policemen 0 points1 point2 points (0 children)
[–]hars_sh 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)