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

How Can I Chain Together Groups Of Promises?

I am using the Q javascript promises library and am running in a browser, and I want to figure out … Read more How Can I Chain Together Groups Of Promises?

Why Is No Value Returned From My Promise?

In this slightly reduced code, one or more weeks of observations are downloaded a week at a time fr… Read more Why Is No Value Returned From My Promise?

Using Kris Kowal's Q. How Should I Catch If Any Errors Have Been Thrown Throughout The Life Of A Chained Promise?

I'm new to promises, and I just started using Kris Kowal's Q today (I've read about it … Read more Using Kris Kowal's Q. How Should I Catch If Any Errors Have Been Thrown Throughout The Life Of A Chained Promise?

I Need Some Help Promises And Q Library

I need some help on syntax with node.js promises. In readme for node.js module called q https://git… Read more I Need Some Help Promises And Q Library

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?

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

Node.js With Typescript Require And .d.ts Files

I want to create an server side script, for this I require 'Q', so I include the q.d.ts fil… Read more Node.js With Typescript Require And .d.ts Files

Wrapping Jquery $.ajax Behind A Facade In Q.js Without Refactoring

It's possible this should be on code review, but here we go! I have a fairly large application … Read more Wrapping Jquery $.ajax Behind A Facade In Q.js Without Refactoring

Asynchronous Or Promised Condition For Array Filter

I need to filter an array based on a condition that can only be checked asynchronously. return som… Read more Asynchronous Or Promised Condition For Array Filter

ReferenceError: Strict Mode Forbids Implicit Creation Of Global Property In For Loop On Promise

I am having a really strange problem. I am trying to perform a for loop on a promise return value. … Read more ReferenceError: Strict Mode Forbids Implicit Creation Of Global Property In For Loop On Promise

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 To Make Synchronous Http Calls Using Promises In Node.js

I would like to iterate thru an array of students and make http call for each of them and parse the… Read more How To Make Synchronous Http Calls Using Promises In Node.js