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

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

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

Poll For A Result N Times (with Delays Between Attempts) Before Failing

We need to write a Node.js function that polls a certain API endpoint for a result of a previously … Read more Poll For A Result N Times (with Delays Between Attempts) Before Failing

Wait For Promises From A For Loop

The following code does not really do what I want. function doIt () { return new Promise (functio… Read more Wait For Promises From A For Loop

Bluebird's Promise.settle Doesn't Resolve With The Correct Values

I have the following code: return Promise.settle(matches, imgur.uploadUrl) .map(function (inspe… Read more Bluebird's Promise.settle Doesn't Resolve With The Correct Values

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?

Bluebird's Promise.settle Doesn't Resolve With The Correct Values

I have the following code: return Promise.settle(matches, imgur.uploadUrl) .map(function (inspe… Read more Bluebird's Promise.settle Doesn't Resolve With The Correct Values

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