Skip to content

ARC0010: Synchronous handler wrapped in a Promise

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; } }