Is there a way to use Bluebird's Promise.each concurrently?
问题 Bluebird has a nice function called Promise.map that lets you pass in an extra argument for the amount of concurrent operations. e.g. yield Promise.map arrayOfThings, coroutine (thing) -> newThing = yield thing.operate() database.set newThing , concurrency: 500 However, Promise.map will keep an array of whatever database.set newThing returns in memory for all of arrayOfThings . I'd rather not store all of that in memory as it bogs down my server. Optimally, I would want to replace Promise.map