Top "Ecmascript-2017" questions

Use this tag for questions about features finalized in ECMAScript 2017.

Is it possible to resolve async function without return keyword

I started to use ES7 feature async/await , which gives the best approach to deal with asynchronous tasks, and makes …

javascript asynchronous async-await ecmascript-2017
ES8 Immediately invoked async function expression

I haven't seen these constructs used much but I've found myself writing them to make use of async / await in …

javascript async-await ecmascript-2017
running queries in firebase using async / await

Appreciating that firebase has added support for promises, is there a way to run a query like the following inside …

node.js firebase ecmascript-2017
Is it possible to use await without async in Js

Await is a amazing feature in es7. However,everytime I use await I found that I have to define a …

javascript html asynchronous ecmascript-2017
How do i wrap a callback with async await?

My function returns a promise that resolves as soon as the http server starts. This is my code: function start() { …

javascript node.js ecmascript-6 ecmascript-2017
How to use Promise.prototype.finally() in async/await syntax?

Actually my main question was using Promise.prototype.catch() in async/await ES8 syntax, Undoubtedly Promise.prototype.then() is existed …

javascript asynchronous async-await ecmascript-2017
Unexpected identifier when using await

I'm currently trying to use async/await for a function that requires the loop to be synchronous. This is the …

javascript node.js async-await es6-promise ecmascript-2017
Is using async in setTimeout valid?

I had a asynchronous function in Javascript and I added setTimeout to it. The code looks like that: let timer; …

javascript asynchronous settimeout ecmascript-2017
Returning an awaited value returns a Promise? (es7 async/await)

const ret = () => new Promise(resolve => setTimeout( () => resolve('somestring'), 1000)); async function wrapper() { let someString = await ret(); return someString; } …

javascript async-await ecmascript-2017
Why doesn't the code after await run right away? Isn't it supposed to be non-blocking?

Hi guys i have a hard time understanding how async and await works behind the scenes. I know we have …

javascript async-await es6-promise ecmascript-2017