q-map
v0.2.0
Published
A utility for throttling arrays of Q promises
Downloads
9
Readme
var Q = require('q')
Q.map = require('q-map').map
var myArray = [1,2,3,4,5,6,7,8]
// Limits promise concurrency to 3
Q.map(myArray, function(element) {
return promiseFactory(element)
}, 3)
.then(function(resolvedArray) {
doStuff()
})