Top "Es6-promise" questions

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

What is the best way to limit concurrency when using ES6's Promise.all()?

I have some code that is iterating over a list that was queried out of a database and making an …

javascript node.js es6-promise
how to use es6-promises with typescript?

I read this SO question but having trouble getting promises to work with typescript. Hopefully we can make a clear …

typescript es6-promise
Intellij Idea warning - "Promise returned is ignored" with aysnc/await

I'm using Express.js in my code with Node.js v7.3. In this I've created a User Router which forwards …

javascript node.js intellij-idea async-await es6-promise
Save Async/Await response on a variable

I am trying to understand async calls using async/await and try/catch. In the example below, how can I …

javascript ecmascript-6 es6-promise
fromPromise does not exist on type Observable

In Angular 2 using rxjs I was trying to convert a Promise to Observable. As many of online guides showed I …

angular promise rxjs observable es6-promise
How to debug javascript promises?

I am trying to understand how to debug asynchronous code that is based on promises. By Promises I mean ECMAScript 6 …

javascript promise es6-promise
How to extract data out of a Promise

I have a promise that returns data and I want to save that in variables. Is this impossible in JavaScript …

javascript promise ecmascript-6 bluebird es6-promise
reading file with ES6 promises

let arr = []; function getData(fileName, type) { return fs.readFile(fileName,'utf8', (err, data) => { if (err) throw err; return …

javascript node.js ecmascript-6 es6-promise
Typescript returning boolean after promise resolved

I'm trying to return a boolean after a promise resolves but typescript gives an error saying A 'get' accessor must …

javascript typescript es6-promise ionic3 ionic-storage
How to .catch a Promise.reject

I have a helper function for using fetch with CouchDB which ends as: ... return fetch(...) .then(resp => resp.ok ? …

javascript es6-promise