Skip to content Skip to sidebar Skip to footer
Showing posts with the label 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

Catching Errors Generated In Promises Within Promises In Javascript

Is it possible to have errors bubble up in Promises? See the code below for reference, I'd like… Read more Catching Errors Generated In Promises Within Promises In Javascript

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

Bluebird Promise Is Undefined?

I'm using node 4.5+ and bluebird. I have the following code I intend to use with then: var chec… Read more Bluebird Promise Is Undefined?

How To Call Promise Function In Loop And Save Its Return Value

I have created a promise function(using bluebird) called getBasketObject. This function expects a b… Read more How To Call Promise Function In Loop And Save Its Return Value

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