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

Do Something N Times Using Bluebird Promises

I am trying the Promises everyone is so excited about. They're are supposed to reduce code comp… Read more Do Something N Times Using Bluebird Promises

Problems With Sequelize Promises And Normal Node.js Callbacks

I'm using Sequelize in an application that uses normal node.js style callbacks in most of its c… Read more Problems With Sequelize Promises And Normal Node.js Callbacks

A Promise Was Created In A Handler But Was Not Returned From It

I've just started using bluebird promises and am getting a confusing error Code Abstract var … Read more A Promise Was Created In A Handler But Was Not Returned From It

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?

Can I Break A Chain Early With Bluebird Promises?

I don't necessarily want to error, but I have: getFromDb().then (tradeData) -> if not trad… Read more Can I Break A Chain Early With Bluebird Promises?

How Do You Call A Function With Parameters In A .then Function In A Javascript Promise String?

I am converting my AWS lambda functions, written in node.js, to use promises instead of callbacks. … Read more How Do You Call A Function With Parameters In A .then Function In A Javascript Promise String?

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