Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    I don't think you can have async arrow functions. Commented Feb 27, 2017 at 15:49
  • Relevant github.com/tc39/ecmascript-asyncawait/issues/7 Commented Feb 27, 2017 at 15:51
  • 1
    To summarize from the linked github discussion, you can't do that because the anonymous function you're passing as a callback is not async and the inner await can't affect the outer function. Commented Feb 27, 2017 at 15:55
  • async/await is part of ES2017 (this year's release), not ES7 (last year's release). Commented Mar 1, 2017 at 14:34