Top "Bluebird" questions

Bluebird is a fully featured promise library for client and server JavaScript with focus on innovative features and performance.

The correct way to bind object to Promise.then() argument

I found out the hard way that one can't simply just pass in a object's function into the Bluebird then. …

javascript node.js promise this bluebird
How do I promisify the AWS JavaScript SDK?

I want to use the aws-sdk in JavaScript using promises. Instead of the default callback style: dynamodb.getItem(params, function(…

node.js promise amazon-dynamodb bluebird aws-sdk
Promises in Sequelize: how to get results from each promise

In Sequelize >=1.7 we can use promises Can you explain for me how can i get values from each user …

javascript promise sequelize.js bluebird
How to chain and share prior results with Promises

I'm using the bluebird library and need to make a series of HTTP requests and need to some of the …

javascript node.js bluebird
Wait promise inside for loop

let currentProduct; for (let i = 0; i < products.length; i++) { currentProduct = products[i]; subscription.getAll(products[i]._id) .then((subs) =&…

javascript node.js promise async-await bluebird
Testing rejected promise in Mocha/Chai

I have a class that rejects a promise: Sync.prototype.doCall = function(verb, method, data) { var self = this; self.client = …

javascript promise mocha bluebird chai-as-promised
if-else flow in promise (bluebird)

This is a short version of my code. var Promise = require('bluebird'); var fs = Promise.promisifyAll(require("fs")); if (conditionA) { …

node.js promise bluebird
Synchronous promise resolution (bluebird vs. jQuery)

I have developed a small lib for the Dynamics CRM REST/ODATA webservice (CrmRestKit). The lib dependes on jQuery and …

javascript jquery asynchronous promise bluebird
When is .then(success, fail) considered an antipattern for promises?

I had a look at the bluebird promise FAQ, in which it mentions that .then(success, fail) is an antipattern. …

javascript node.js promise bluebird
Bluebird Promise.all - multiple promises completed aggregating success and rejections

Someone brought up an interesting case today with bluebird, what is the best way to handle multiple promises where we're …

javascript node.js promise bluebird