How to optionally await a JavaScript function call
DRANK

Even though async functions and the await operator quickly became popular in JavaScript, many use await solely with function calls, such as: const result = await readSomeFile(); That works fine when you know...

humanwhocodes.com
Related Topics: JavaScript
1 comments
  • awaitするまで同期的に動くのでこういうトリックが必要になることはある: "How to optionally await a JavaScript function call"