Top "Bluebird" questions

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

How does Bluebird's util.toFastProperties function make an object's properties "fast"?

In Bluebird's util.js file, it has the following function: function toFastProperties(obj) { /*jshint -W027*/ function f() {} f.prototype = obj; …

javascript node.js performance v8 bluebird
How to use Bluebird in Typescript 2.1+

(I have read this post but it is from August and it does not answer my question for the current …

javascript typescript promise bluebird typescript2.1
How to propagate a promise error to a higher promise level after loading a file?

I'm working on an async script loader using bluebird and I'm struggling to pass an error up to where I …

javascript asynchronous error-handling promise bluebird
Koa / Co / Bluebird or Q / Generators / Promises / Thunks interplay? (Node.js)

I'm investigating building a web app in part with Koa, but I don't quite have a handle on the hows, …

node.js generator promise bluebird koa
Are nested catches within promises required?

We would like to reduce the number of catch blocks inside our promises. If we remove the nested catches, will …

javascript mongoose promise bluebird
While loop using bluebird promises

I am trying to implement a while loop using promises. The method outlined here seems to work. http://blog.victorquinn.…

javascript promise bluebird
Promise.each without bluebird

I need using Promise.each on bluebird. But when I see the bundle files, I'm actually thinking twice using bluebird …

javascript promise bluebird
How to reject (and properly use) Promises?

Short story: Talking about Promises/A+, what is the proper way to reject a promise - throwing an error? But …

javascript node.js promise bluebird
How to cast jQuery $.ajax calls to Bluebird promises without the deferred anit-pattern

Right now I use promise.deferred in a core file. This allows me to resolve promises at a central location. …

javascript promise bluebird
How to do parallel async multiple requests at once with Promises in Node

Array and loops through but I want to be able to run all of them in parallel instead as I …

javascript node.js promise restify bluebird