Inspectopedia 2024.3 Help

Async code and promises

'await' in non-async function   New in this release

Reports a usage of await in a function that was possibly intended to be async but is actually missing the async modifier.

Missing await for an async function call   New in this release

Reports an async function call without an expected await prefix inside an async function.

Redundant 'await' expression   New in this release

Reports a redundant usage of await, such as await await, or awaiting a non-promise result.

Result of method call returning a promise is ignored   New in this release

Reports a function call that returns a Promise that is not used later.

Top-level 'await' expression   New in this release

Reports a usage of a top-level await expression.

Last modified: 11 September 2024