Calls a query handler; the answer waits until the state it read is durable.
Optionalarg: AStarts a new run whose journal is this one's cut just before beforeStep.
Waits for the run's result (following continue-as-new and reset).
Resumes a run that paused because a step ran out of retries
(retry: { onExhausted: "pause" }): the step runs again at once, with
a fresh set of attempts, on the code this process has now. Rejected if
nothing is paused.
Runs a failed run again from its failed step (a reset before it, with its signals).
Sends a signal (a definition or its name); resolves once it is durable.
Waits until a run with this ID exists. A debounced or batched run
starts only when its window closes; until then result fails with
NotFound.
The run's summary: status, type, version, times, error.
A reader of the run's stream name (for await (const chunk of run.stream("tokens"))).
Ends the run at once; children follow their parent close policy.
Sends an update and waits for its handler's durable result.
The run and its journal (each record with its
kind), and for a key of an object type its state. Throws NotFoundError for an unknown ID.