Skip to content Skip to sidebar Skip to footer
Showing posts with the label Q

Q Promises - Node.js Function For Every Element In The Array

Function dirList() should return array of folders inside definded directory. I can't understand… Read more Q Promises - Node.js Function For Every Element In The Array

How Can I Limit Q Promise Concurrency?

How do I write a method that limits Q promise concurrency? For instance, I have a method spawnProce… Read more How Can I Limit Q Promise Concurrency?

"iterating" Throw Promises Does Not Let To Generate Different Ids

Reading some amazing tutorials about promises, I've discovered that, if I need to interate thro… Read more "iterating" Throw Promises Does Not Let To Generate Different Ids

Create An Api Which Accepts A Callback, And Also Returns A Promise

So I'm trying to upgrade an existing api to support promises, but I want to maintain backwards … Read more Create An Api Which Accepts A Callback, And Also Returns A Promise

How To Retry An Xhr Request Which Returns A Promise Recursively For Atleast N Times On Status 0

I have written the below piece of code. makeRequest gets called and I want to retry this when xhr s… Read more How To Retry An Xhr Request Which Returns A Promise Recursively For Atleast N Times On Status 0

When Should I Use Q.defer And When Just Promise.resolve/reject?

I'm using nodejs and was wondering when should I use Q defer, and when just use Promise.resolve… Read more When Should I Use Q.defer And When Just Promise.resolve/reject?