Skip to content Skip to sidebar Skip to footer
Showing posts with the label 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?

Incorporating Async Actions, Promise.then() And Recursive Settimeout Whilst Avoiding "deferred Antipattern"

I have been reading up on methods to implement a polling function and found a great article on http… Read more Incorporating Async Actions, Promise.then() And Recursive Settimeout Whilst Avoiding "deferred Antipattern"

Testing For Specific Properties Of Rejected Promises, With Mocha And Chai-as-promised

I am trying to test the specifics of a rejected Promise, using Chai-as-Promised, Mocha, and the … Read more Testing For Specific Properties Of Rejected Promises, With Mocha And Chai-as-promised

Why Is My Javascript Promise Stuck As "pending"?

I have a complex SVG that is drawn to a canvas, and this task needs to complete before other object… Read more Why Is My Javascript Promise Stuck As "pending"?

Testing Rejected Promise In Mocha/chai

I have a class that rejects a promise: Sync.prototype.doCall = function(verb, method, data) { var… Read more Testing Rejected Promise In Mocha/chai

Axios Promise Returns Correct Value In "axios.all" Function, But Is Undefined In The "then" Function

I'm following a tutorial in which data from the git API is requested and a scoring algorithm wi… Read more Axios Promise Returns Correct Value In "axios.all" Function, But Is Undefined In The "then" Function

Javascript - Using Promise For Post Php, Get Undefined Result

I'm a newbie in JS and have a little to no knowledge about asynchronous program and promise. I … Read more Javascript - Using Promise For Post Php, Get Undefined Result

How To Make A Promise Resolve With A Specific Condition?

I am new to JavaScript and I really got confused by the documentation about promises. I have the fo… Read more How To Make A Promise Resolve With A Specific Condition?