ECMAScript proposal: top-level `await`

added by JavaScript Kicks
12/19/2019 1:01:52 PM

160 Views

The ECMAScript proposal "Top-level await" by Myles Borins lets you use the asynchronous await operator at the top level of modules. Before, you could only use it in async functions and async generators. Table of contents: Why would we want to use the await operator at the top levels of modules?


0 comments