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

Can I Break A Chain Early With Bluebird Promises?

I don't necessarily want to error, but I have: getFromDb().then (tradeData) -> if not trad… Read more Can I Break A Chain Early With Bluebird Promises?

I Broke My Promise

So.. I'm having the hardest time learning how to Promise. I'm using bluebird (https://githu… Read more I Broke My Promise

Testing Rejected Promise In Mocha/chai

I have a class that rejects a promise: Sync.prototype.doCall = function(verb, method, data) { var… Read more Testing Rejected Promise In Mocha/chai

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?

Do Something N Times Using Bluebird Promises

I am trying the Promises everyone is so excited about. They're are supposed to reduce code comp… Read more Do Something N Times Using Bluebird Promises

How To Wait For The Return Of A Mongoose Search?

I created a CRUD with NodeJS / Mongoose, split the files in MVC style. In route example I show up b… Read more How To Wait For The Return Of A Mongoose Search?

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

Testing Rejected Promise In Mocha/Chai

I have a class that rejects a promise: Sync.prototype.doCall = function(verb, method, data) { var… Read more Testing Rejected Promise In Mocha/Chai