I am just curious, as per ES2022
release we can use top level await
and that means we don't need to use async
keyword to use await
, before es2022
release we were not allowed to write await
without async
.
So what will be the use of async
keyword now? Is there are any other use cases where we can utilize async
keyword?
Reference - What’s new in JavaScript after the ES2022 release