Top "Es6-promise" questions

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

What is an unhandled promise rejection?

For learning Angular 2, I am trying their tutorial. I am getting an error like this: (node:4796) UnhandledPromiseRejectionWarning: Unhandled promise rejection (…

javascript angular es6-promise spawn unhandled-exception
How do I access previous promise results in a .then() chain?

I have restructured my code to promises, and built a wonderful long flat promise chain, consisting of multiple .then() callbacks. …

javascript scope promise bluebird es6-promise
Handling errors in Promise.all

I have an array of Promises that I'm resolving with Promise.all(arrayOfPromises); I go on to continue the promise …

javascript es6-promise
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
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
How to reject in async/await syntax?

How can I reject a promise that returned by an async/await function? e.g. Originally: foo(id: string): Promise&…

javascript asynchronous typescript es6-promise ecmascript-2017
JavaScript ES6 promise for loop

for (let i = 0; i < 10; i++) { const promise = new Promise((resolve, reject) => { const timeout = Math.random() * 1000; setTimeout(() => { console.…

javascript es6-promise
How to use Typescript with native ES6 Promises

I'm a complete beginner to Typescript and am wondering if it's possible to use ES6 promises in Typescript and what …

javascript typescript es6-promise
Axios get access to response header fields

I'm building a frontend app with React and Redux and I'm using axios to perform my requests. I would like …

http-headers es6-promise axios
Returning Promises from Vuex actions

I recently started migrating things from jQ to a more structured framework being VueJS, and I love it! Conceptually, Vuex …

promise vue.js es6-promise state-management vuex