async functions not working
See original GitHub issueHi,
This function outputs an error:
const hi = async () => { console.log("Hello World!"); } hi();
async/await is cutting edge, but do you plan to add this feature ?
Thx in advance, Olivier
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
javascript async/await not working - Stack Overflow
I am using the async/await keywords, but not having any luck. Any help appreciated. This is my attempt to try getting it to...
Read more >javascript - await does not wait for Promise to finish
@SachinHooda await operator can only be used inside an async function, failing this would throw a runtime error as "Can not use keyword...
Read more >Async/await - The Modern JavaScript Tutorial
The word “async” before a function means one simple thing: a function always returns a promise. Other values are wrapped in a resolved...
Read more >async function - JavaScript - MDN Web Docs - Mozilla
The async function declaration declares an async function where the await keyword is permitted within the function body. The async and await ...
Read more >5. Async functions - Exploring JS
The work performed by the callbacks isn't finished once map() is finished, because await only pauses the surrounding arrow function and httpGet() is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So i close this issue. As soon as
esprima
will have gotten update withasync/await
support, i update package.This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.