I now use this code (part of my code):
async.forEachOfSeries(dates, function(mydate, m, eachDone) {
eachDateParse(Name,Place,Strategy, eachDone)
}, function(err) {
if (err) throw err;
console.log("All Done!");
callback(); }
);
async.forEachOfSeries
does loop over dates
in order, but is there any async function that can randomise the order of the loop over dates
?
Best Regards