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

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

Catch Error Type In Bluebird Not Working

I have a custom error class: class NetworkError extends Error { constructor() { super('Ne… Read more Catch Error Type In Bluebird Not Working

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

Can't Apply Lodash Partial To Function Created With Bluebird Promisifyall

The below code takes a all the methods in object lib and promisify's them. Then I can use the c… Read more Can't Apply Lodash Partial To Function Created With Bluebird Promisifyall

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

Best Way To Handle Early Returns In Chains Of Promises?

What's the best way to handle early returns in Bluebird without throwing an error. For example,… Read more Best Way To Handle Early Returns In Chains Of 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?)

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