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

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?

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

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

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?

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

Should I Return The Result Of Deferred.resolve/reject?

When working with Q deferreds, should I return the result of deferred.resolve and deferred.reject? … Read more Should I Return The Result Of Deferred.resolve/reject?

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

Chaining Promises Without Using 'then' With Q Library

I'm trying to chain Q promises without 'then', so eventually the chain would look like … Read more Chaining Promises Without Using 'then' With Q Library