WaitHandle

A low-level, single-subscriber command wait resource.

Callers that create a handle through WaitCoordinator own its lifetime and must eventually terminate it through a final signal, error, or cancel. cancel must be idempotent and safe to invoke after another terminal signal.

Inheritors

Properties

Link copied to clipboard
abstract val plan: WaitPlan
Link copied to clipboard
abstract val waitCommandId: String

The unique identifier for the wait command. This ID is used to match wait plans with command processing results.

Functions

Link copied to clipboard
abstract fun cancel()
Link copied to clipboard
abstract fun error(throwable: Throwable)
Link copied to clipboard
abstract fun next(signal: WaitSignal): Boolean