Top "Q" questions

The Q.js JavaScript promise library.

How to properly abort a node.js promise chain using Q?

I'm using the Q module for Node.js in attempts to avoid the "pyramid of doom" in scenarios where I …

node.js promise q
AngularJS Promises, $q, defer

EDIT The first answer is the elegant one, but, as stated a few times in this question and another questions …

javascript angularjs promise q
How to actually use Q promise in node.js?

This might be a noob question, but I'm new to promises and trying to figure out how to use Q …

javascript node.js promise q
Multiple chained deferred functions using q in AngularJS stop returning data

I am trying to chain together multiple deferred function calls such that the next call gets the results of the …

angularjs q
Queuing promises

I use mbostock/queue for queuing few async operation. It is more to rate limit (UI generate few events, where …

javascript angularjs queue q
TypeError: Cannot read property 'then' of undefined angularjs-grunt test

I'm using $q service to make an async calls. I can't resolve 'then' and 'defer' in unit tests using karma. …

angularjs unit-testing karma-runner q
How to use Q.all() with complex array of promises?

Consider I have an array of objects and promises, something like: [{ a: 1 }, { a: 4 }, { a: 4 }, { promiseSend: [Function], valueOf: [Function] }, { promiseSend: [Function], …

node.js q
Can I make a synchronous promise in the JavaScript Q library?

I want to do something like the following: delay( 2500 ) .then( function () { console.log( "Step 1 done" ) } ) .then( delay( 7500 ) ) .then( function () { console.…

javascript q
Java - Split String by Number and Letters

So I have, for example, a string such as this C3H20IO What I wanna do is split this …

java regex string split q
Mongoose and promises: how to get an array of query results?

Using mongoose to query results from the db and Q for promises, but finding it hard to wrap my head …

node.js mongodb mongoose promise q