Await Expression
The await
expression causes the surrounding function to be asynchronous, returning a Promise. It's currently not allowed in the top-level of a program.
The await
expression causes the surrounding function to be asynchronous, returning a Promise. It's currently not allowed in the top-level of a program.