Missing await for an async function call
async function call without an expected
await prefix inside an
async function. Such call returns a
Promise and control flow is continued immediately.
After the quick-fix is applied, the
await prefix is added:
When the 'Report for promises in return statements' checkbox is selected, also suggests adding
await in return statements.
While this is generally not necessary, it gives two main benefits.
You won't forget to add
awaitwhen surrounding your code with
awaithelps V8 runtime to provide async stack traces.
Report for promises in return statements
AppCode 2023.3, CLion 2023.3, GoLand 2023.3, IntelliJ IDEA 2023.3, JetBrains Rider 2023.1, PhpStorm 2023.3, PyCharm 2023.3, Qodana for .NET 2023.1, Qodana for JS 2023.3, Qodana for JVM 2023.3, Qodana for PHP 2023.3, Qodana for Ruby 2023.3, RubyMine 2023.3, WebStorm 2023.3