Top "Bluebird" questions

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

return value inside promise chain isn't getting called

I'm using the promise library Bluebird and I'm currently running into the issue that everything inside the function runs great, …

javascript node.js promise bluebird
Parallel operations with Promise.all?

I'm led to believe that Promise.all executes all the functions you pass it in parallel and doesn't care what …

node.js promise bluebird
Trigger Promise when an event fires

My entire project uses (Bluebird) Promises, but there's one particular library that uses EventEmitter. I want to achieve something like: …

node.js promise bluebird
Promise.all in JavaScript: How to get resolve value for all promises?

I wrote the following node.js file: var csv = require('csv-parser'); var fs = require('fs') var Promise = require('bluebird'); var …

javascript node.js ecmascript-6 promise bluebird
How to promisify correctly JSON.parse method with bluebird

I'm trying to promisify JSON.parse method but unfortunately without any luck. This is my attempt: Promise.promisify(JSON.parse, …

javascript node.js asynchronous promise bluebird
How can I promisify the MongoDB native Javascript driver using bluebird?

I'd like to use the MongoDB native JS driver with bluebird promises. How can I use Promise.promisifyAll() on this …

javascript mongodb promise bluebird node-mongodb-native
Bluebird Promisfy.each, with for-loops and if-statements?

Right now, the parent for-loop (m < repliesIDsArray.length) completes before the first findOne fires, so this all only loops …

node.js mongoose promise node-mongodb-native bluebird
Define empty Bluebird promise like in Q

With Q I can define a new promise with: var queue = q(); But with Bluebird if I do: var queue = …

javascript promise q bluebird
nodejs child_process.spawnSync or child_process.spawn wrapped in yieldable generator which returns output

since a while i am trying to reach something that doesn't work out for me so far. With nodejs, i …

node.js bluebird child-process spawn co
Bluebird Promise serial iteration, and resolve to modified array?

I have this promise that creates a new Item document if it's not found in the db, and then stores …

javascript node.js promise bluebird