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

Bluebird's Promise.settle Doesn't Resolve With The Correct Values

I have the following code: return Promise.settle(matches, imgur.uploadUrl) .map(function (inspe… Read more Bluebird's Promise.settle Doesn't Resolve With The Correct Values

Bluebird Promise Serial Iteration, And Resolve To Modified Array?

I have this promise that creates a new Item document if it's not found in the db, and then stor… Read more Bluebird Promise Serial Iteration, And Resolve To Modified Array?

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

How Do You Avoid The Promise Constructor Antipattern With Promise.all

How do you avoid the promise constructor antipattern when using multiple promises and Promise.all? … Read more How Do You Avoid The Promise Constructor Antipattern With Promise.all

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

Proper While() Loop For Bluebird Promises (without Recursion?)

I've been learning promises using bluebird for two weeks now. I have them mostly understood, b… Read more Proper While() Loop For Bluebird Promises (without Recursion?)

Request-promise Unhandled Rejection Requesterror: Error: Etimedout

Hi i try to write some download function by promise request, but if i have a timeout i cant handled… Read more Request-promise Unhandled Rejection Requesterror: Error: Etimedout

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

Proper While() Loop For Bluebird Promises (without Recursion?)

I've been learning promises using bluebird for two weeks now. I have them mostly understood, b… Read more Proper While() Loop For Bluebird Promises (without Recursion?)

How To Promisify?

I have this sort of function: someFunction.someMethod('param1', function(err, res1, res2) {… Read more How To Promisify?