News for hackers. Stuff that matters.
Re:Bluebird in the wild: Advanced promise-based workflows by tonyle on Tuesday April 19, 2016 @11:49AM (#11527791)
When I first got into promises, they were annoying for certain tasks. Something as simple as download a list of 1000 files was hard to do since you didn't want all the calls to fire off at once. After a long journey with various techniques, I found out Bluebird map had a concurrency parameter.

return Promise.map(arrayOfUrlsToDownload,downloadAndParseFunction,{concurrency:1})

One line for all your basic scraping/parsing needs.

Re:Bluebird in the wild: Advanced promise-based workflows by DonPellegrino on Tuesday April 19, 2016 @06:05PM (#11530861)
There's also [Bottleneck](https://github.com/SGrondin/bottleneck) for more fine grained concurrency.