| title | ARC0010: Synchronous handler wrapped in a Promise |
|---|---|
| description | Avoid unnecessary async handlers without await. |
An async command handle() has no await, for await, or returned asynchronous value. Rule: arc-core/arc0010.
Arc accepts synchronous responses directly. Do not remove async mechanically when it changes an existing promise-returning contract or rejection semantics.
@command()
export class GetValue { async handle() { return 3; } }@command()
export class GetValue { handle() { return 3; } }