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

Bluebird Promise Resolve(data) Is Undefined In Client Code

Hiyas. I have a simple app whereby a client is expecting a promise as a result, but upon calling th… Read more Bluebird Promise Resolve(data) Is Undefined In Client Code

Promises With Fs And Bluebird

I'm currently learning how to use promises in nodejs so my first challenge was to list files in… Read more Promises With Fs And Bluebird

How To Reuse A Mongo Connection With Promises

How can I change things around in my db connection call so that I can do db.collection(): // Create… Read more How To Reuse A Mongo Connection With Promises

Sequential Execution Of Promise

I have following promise functions implemented like return new Promise(function(resolve, reject) { … Read more Sequential Execution Of Promise