Top "Q" questions

The Q.js JavaScript promise library.

Create an empty promise

I have a function in a chain of promises that may or may not do something. E.g. getYear().then(…

node.js promise q
Promises: Repeat operation until it succeeds?

I want to perform an operation repeatedly, with an increasing timeout between each operation, until it succeeds or a certain …

javascript promise q
chaining promises with q.js

I'm trying to understand how promise chaining works. I'm using q.js. Here's what I'm playing with. var Q = require("…

javascript promise q
Using promises - Logging stack trace in fail handler

I am rather new to nodejs so I will explain in a bit more detail what I am trying to …

javascript node.js stack-trace promise q
Angular Js : '$q.defer is not a function' error

After Refering this Link , I am trying to get JSON data into my angular service. Service: .factory('restservice', ['$rootScope',…

angularjs q angular-promise angular-services
Recursive Promises?

I would like to iterate over all files located in the HTML 5 file system and have some event get started …

javascript angularjs asynchronous promise q
javascript promise not passing all arguments (using Q)

I am having trouble passing all arguments. My promise callback only receives one instead of three: var asyncFunction= function(resolve) { …

javascript node.js promise deferred q
q.js: difference between resolve() and fulfill()

I'm still unclear on the difference between calling a resolver's resolve() vs fulfill()? I see both the functions and the …

javascript asynchronous promise q
AngularJS - fail resilence on $q.all()

I'm trying to fill some local data resolving a series of remote calls. When every promise is resolved, I load …

ajax angularjs promise q
How to resolve $q.all?

I have 2 functions, both returning promises: var getToken = function() { var tokenDeferred = $q.defer(); socket.on('token', function(token) { tokenDeferred.resolve(…

javascript angularjs asynchronous q