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

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?

Bluebird Promise Resolve(data) Is Undefined In Client Code

Hiyas. I have a simple app whereby a client is expecting a promise as a result, but upon calling th… Read more Bluebird Promise Resolve(data) Is Undefined In Client Code

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

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

Sequential Execution Of Promise

I have following promise functions implemented like return new Promise(function(resolve, reject) { … Read more Sequential Execution Of 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?

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