Top "Promise" questions

Promises are a tactic for deferred computing, suitable for several styles of concurrency: thread and event loop concurrency for local computation, and both synchronous and asynchronous remote messaging.

Angularjs $q.all

I have implemented the $q.all in angularjs, but I can not make the code work. Here is my code : …

angularjs promise q
Wait until all promises complete even if some rejected

Let's say I have a set of Promises that are making network requests, of which one will fail: // http://does-not-exist …

javascript promise es6-promise
What's the difference between a Future and a Promise?

What's the difference between Future and Promise? They both act like a placeholder for future results, but where is the …

java concurrency future promise
How do I tell if an object is a Promise?

Whether it's an ES6 Promise or a bluebird Promise, Q Promise, etc. How do I test to see if a …

javascript promise q bluebird es6-promise
Break promise chain and call a function based on the step in the chain where it is broken (rejected)

Update: To help future viewers of this post, I created this demo of pluma's answer. Question: My goal seems fairly …

javascript angularjs promise
Use async await with Array.map

Given the following code: var arr = [1,2,3,4,5]; var results: number[] = await arr.map(async (item): Promise<number> => { await …

javascript typescript promise async-await ecmascript-2017
How to make promises work in IE11

I have a simple code that runs perfectly on every browser except for the Internet Explorer 11. How can I make …

javascript internet-explorer promise
using setTimeout on promise chain

Here i am trying to wrap my head around promises.Here on first request i fetch a set of links.…

javascript json promise
Correct way to write loops for promise.

How to correctly construct a loop to make sure the following promise call and the chained logger.log(res) runs …

javascript node.js promise bluebird
Angular 2: How to call a function after get a response from subscribe http.post

I need to call a method after get the data from the http post request service: request.service.TS get_…

javascript angular typescript promise subscribe