Top "Es6-promise" questions

An ES6 Promise is an ECMAScript 2015 object that represents an in-progress asynchronous operation

What is difference between Axios and Fetch?

I am calling the web service by using fetch but the same I can do with the help of axios. …

ajax reactjs xmlhttprequest es6-promise es6-modules
how to cancel/abort ajax request in axios

I use axios for ajax requests and reactJS + flux for render UI. In my app there is third side timeline (…

reactjs flux reactjs-flux es6-promise axios
Cancel a vanilla ECMAScript 6 Promise chain

Is there a method for clearing the .thens of a JavaScript Promise instance? I've written a JavaScript test framework on …

javascript promise cancellation es6-promise
Promises, pass additional parameters to then chain

A promise, just for example: var P = new Promise(function (resolve, reject) { var a = 5; if (a) { setTimeout(function(){ resolve(a); }, 3000); } …

javascript promise ecmascript-6 es6-promise
Resolve Javascript Promise outside function scope

I have been using ES6 Promise. Ordinarily, a Promise is constructed and used like this new Promise(function(resolve, reject){ …

javascript promise es6-promise
Do I need to return after early resolve/reject?

Suppose I have the following code. function divide(numerator, denominator) { return new Promise((resolve, reject) => { if(denominator === 0){ reject("Cannot …

javascript promise es6-promise
Promise.all: Order of resolved values

Looking at MDN it looks like the values passed to the then() callback of Promise.all contains the values in …

javascript promise es6-promise
How to use promise in forEach loop of array to populate an object

I am running a forEach loop on an array and making two calls which return promises, and I want to …

javascript arrays foreach promise es6-promise
Why can I not throw inside a Promise.catch handler?

Why can't I just throw an Error inside the catch callback and let the process handle the error as if …

javascript asynchronous promise throw es6-promise
Is Node.js native Promise.all processing in parallel or sequentially?

I would like to clarify this point, as the documentation is not too clear about it; Q1: Is Promise.all(…

javascript node.js promise es6-promise