Source: async.js, line 8687 Example var iterator = function(n, done) { done(null, n); }; async.times(4, iterator, function(err, res) { console.log(res); // [0, 1, 2, 3]; });