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

Bluebird.each Break If Solved

I want to test each element of an array until a condition is met then skip the rest. This is the co… Read more Bluebird.each Break If Solved

Run Bluebird Promises Sequentially, Without Return Values?

This question has been asked in a variety of ways, but not quite as simply. How would this Promise.… Read more Run Bluebird Promises Sequentially, Without Return Values?

Swap Order Of Arguments To "then" With Bluebird / Nodejs Promises

I have a function which asynchronously grabs a value from a server: var request = require('requ… Read more Swap Order Of Arguments To "then" With Bluebird / Nodejs Promises

How Do I Know Which Handlers Throw Error In Promise?

Suppose I have a promise as following: p.then(Task1) .then(Task2) .then(Task3) .catch(errorHandl… Read more How Do I Know Which Handlers Throw Error In Promise?

Promise Cancellation Still Firing Fulfill Function

This is my code: var promiseResult = new BBpromise(function(resolve, reject){ console.log(1) … Read more Promise Cancellation Still Firing Fulfill Function

Problems With Sequelize Promises And Normal Node.js Callbacks

I'm using Sequelize in an application that uses normal node.js style callbacks in most of its c… Read more Problems With Sequelize Promises And Normal Node.js Callbacks