Created
June 20, 2016 11:12
-
-
Save iokasimov/99a3c087e190f6b3694b3d961ce5a462 to your computer and use it in GitHub Desktop.
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 main = function(continets){ | |
var counter = 0; | |
var agencies = []; | |
var on_complete = function(err, data){ | |
agencies = agencies.concat(data); | |
counter++; | |
} | |
async.each(continents, | |
function (url, next) { | |
p.process(url, on_complete); | |
}, | |
function (err) { | |
if (err) { | |
console.log(err); | |
} | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment