question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🎉 Asynchronous Iteration arrived at Stage 4.

See original GitHub issue

https://github.com/tc39/proposals/commit/a41dccc91675f41c65dee354c18c19946d6f2f45

  • Update Espree to support the syntax in ecmaVersion:2018.
    • for await (const x of xs); (ForOfStatement#await)
    • async function* f() {}
    • f = async function* () {}
    • obj = { async* f() {} }
    • class A { async* f() {} }
  • Update core rules to support the syntax.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
not-an-aardvarkcommented, Jan 25, 2018
  • object-shorthand fixer needs to account for async generator methods
  • semi needs to account for for-await-of statements
  • keyword-spacing needs to account for for-await-of statements
  • no-await-in-loop needs to account for for-await-of statements (should not report statements in for-await-of loops)
  • no-useless-computed-key fixer needs to account for async generator methods
  • require-await needs to avoid reporting errors if an async function has a for-await-of loop
1reaction
mysticateacommented, Feb 5, 2018

I’m working on this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ES2018: asynchronous iteration - 2ality
This blog post explains the ECMAScript proposal “Asynchronous Iteration” by Domenic Denicola and Kevin Smith. It has reached stage 4 on ...
Read more >
Introduction to Asynchronous Iteration - Observable
Async iteration is a simple extension of this concept: rather than a single async value, you have multiple async values and you want...
Read more >
Node.js Event-Loop: How even quick Node.js async functions ...
First, let's block the Node.js Event-Loop! Note: Examples below use Node 10.9.0 on an Ubuntu 18.04 VM with 4 cores, running on a ......
Read more >
Asynchronous JavaScript: Introducing async and await - Twilio
Learn to write asynchronous JavaScript using the async and await keywords in this programming tutorial. It includes a case study application ...
Read more >
Async iteration and generators - The Modern JavaScript Tutorial
Asynchronous iteration allow us to iterate over data that comes asynchronously, on-demand. Like, for instance, when we download something ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found