aync / await
See original GitHub issueI’ve been thinking about it all morning, and I think that there’s a way to map async / await semantics onto new Duktape.Thread().resume() / Duktape.Thread.yield(). They have similar error-throwing behavior, and don’t have the weird .next() interface that generators have.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:10 (7 by maintainers)
Top Results From Across the Web
async function - JavaScript - MDN Web Docs - Mozilla
The async and await keywords enable asynchronous, promise-based behavior to be written in a cleaner style, avoiding the need to explicitly ...
Read more >Async/await - The Modern JavaScript Tutorial
The async keyword before a function has two effects: ... The await keyword before a promise makes JavaScript wait until that promise settles,...
Read more >JavaScript Async - W3Schools
The await keyword can only be used inside an async function. The await keyword makes the function pause the execution and wait for...
Read more >Async/await - Wikipedia
In computer programming, the async/await pattern is a syntactic feature of many programming languages that allows an asynchronous, non-blocking function to ...
Read more >Async/Await Function in JavaScript - GeeksforGeeks
Await : Await function is used to wait for the promise. It could be used within the async block only. It makes the...
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 Free
Top 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

There’s not much chatter here. Is async/await support planned for an upcoming version?
@svaarala Thinking about this now, assuming a
Promisepolyfill is provided, could one emulateawaitby:Or would that cause unforeseen issues (i.e. resuming a thread from the job queue).