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

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

Under What Circumstances Might Bluebird's "possibly Unhandled Error" Warning Be Wrong?

The word 'possibly' suggests there are some circumstances where you can get this warning in… Read more Under What Circumstances Might Bluebird's "possibly Unhandled Error" Warning Be Wrong?

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

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

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

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