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

How To Unit Test A Function Which Calls Another That Returns A Promise?

I have a node.js app using express 4 and this is my controller: var service = require('./catego… Read more How To Unit Test A Function Which Calls Another That Returns A Promise?

Sqlite3 - Promise For Asynchronous Calls

I want to select asynchronous some data of a sqlite3 database. But since db.each is a asynchron fun… Read more Sqlite3 - Promise For Asynchronous Calls

Executing 100k Promises In Javascript In Small 50 Chunks

I have a function that makes a REST call to a service and returns a promise. lets call that functio… Read more Executing 100k Promises In Javascript In Small 50 Chunks

How To Cast Jquery $.ajax Calls To Bluebird Promises Without The Deferred Anit-pattern

Right now I use promise.deferred in a core file. This allows me to resolve promises at a central lo… Read more How To Cast Jquery $.ajax Calls To Bluebird Promises Without The Deferred Anit-pattern

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?

Javascript - Using Promise For Post Php, Get Undefined Result

I'm a newbie in JS and have a little to no knowledge about asynchronous program and promise. I … Read more Javascript - Using Promise For Post Php, Get Undefined Result