Top "Q" questions

The Q.js JavaScript promise library.

Define empty Bluebird promise like in Q

With Q I can define a new promise with: var queue = q(); But with Bluebird if I do: var queue = …

javascript promise q bluebird
Node.js Promises: Push to array asynchronously & save

I am currently trying to push to an array (attribute within a Mongo Model), from a list of items I …

arrays node.js q
Problems inherent to jQuery $.Deferred (jQuery 1.x/2.x)

@Domenic has a very thorough article on the failings of jQuery deferred objects: You're missing the Point of Promises. In …

jquery promise jquery-deferred q es6-promise
How to chain a variable number of promises in Q, in order?

I have seen Chaining an arbitrary number of promises in Q ; my question is different. How can I make a …

node.js promise q
How to correctly chain conditional(?) promises with Q.js

I've still not quite got a complete understanding of promises so apologies if this is a simple misunderstanding. I have …

javascript breeze durandal q
When to reject/resolve a promise

I am thinking about when exactly I need to reject a promise. I found a couple of questions regarding this …

node.js promise q
Use jQuery or Q.Js for promises

I'm looking into BreezeJs and there samples are using Q.js for promises to handle asynchronous calls. John Papa is …

javascript jquery breeze promise q
solving $rootScope:infdig Infinite $digest Loop

I get the basic idea of the infinite digest loop and how it happens, but I'm running into the problem. …

javascript angularjs q angular-promise
Node.js Asynchronous Library Comparison - Q vs Async

I have used kriskowal's Q library for a project (web scraper / human-activity simulator) and have become acquainted with promises, returning …

javascript node.js asynchronous q
What happens if i reject / resolve multiple times in Kriskowal's q?

I'm studying the promises pattern and using kriskowal's q for node.js, having this snippet: var deferred = Q.defer(); try { …

javascript node.js promise q