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

How To Reuse A Mongo Connection With Promises

How can I change things around in my db connection call so that I can do db.collection(): // Create… Read more How To Reuse A Mongo Connection With Promises

Promises With Fs And Bluebird

I'm currently learning how to use promises in nodejs so my first challenge was to list files in… Read more Promises With Fs And Bluebird

Request-promise Unhandled Rejection Requesterror: Error: Etimedout

Hi i try to write some download function by promise request, but if i have a timeout i cant handled… Read more Request-promise Unhandled Rejection Requesterror: Error: Etimedout

Bluebird Promise Is Undefined?

I'm using node 4.5+ and bluebird. I have the following code I intend to use with then: var chec… Read more Bluebird Promise Is Undefined?

Cannot Read Property Of Undefined After Promise.promisify

let nasPath = ''; return getFamInfo(args.familyID) .then(function (famInfo) { n… Read more Cannot Read Property Of Undefined After Promise.promisify

Sequential Execution Of Promise

I have following promise functions implemented like return new Promise(function(resolve, reject) { … Read more Sequential Execution Of 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 Avoid The Promise Constructor Antipattern With Promise.all

How do you avoid the promise constructor antipattern when using multiple promises and Promise.all? … Read more How Do You Avoid The Promise Constructor Antipattern With Promise.all