RunHandle
A run admitted by GraphRuntime.start, GraphRuntime.recover or GraphRuntime.resume. Its thread was claimed before the handle was returned, and the run executes on a virtual thread owned by the runtime, named llm4s-run-<threadId>, which holds the thread until it exits.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Blocks until the run ends and returns its result; the result is retained, so every call returns the same value. If the awaiting thread is interrupted, returns Left(CancelledError) with the interrupt flag still set, and the run continues: only cancel stops a run.
Blocks until the run ends and returns its result; the result is retained, so every call returns the same value. If the awaiting thread is interrupted, returns Left(CancelledError) with the interrupt flag still set, and the run continues: only cancel stops a run.
Attributes
Cancels the run by interrupting its thread; see GraphError.Cancelled. Returns at once and is idempotent. A no-op once the run has ended, and once it has begun committing its outcome (completed, suspended or failed): that commit is not interrupted, and the run ends with it. A cancel that interrupts a superstep's commit still ends the run Cancelled, even if the store reports that commit as failed.
Cancels the run by interrupting its thread; see GraphError.Cancelled. Returns at once and is idempotent. A no-op once the run has ended, and once it has begun committing its outcome (completed, suspended or failed): that commit is not interrupted, and the run ends with it. A cancel that interrupts a superstep's commit still ends the run Cancelled, even if the store reports that commit as failed.
Attributes
Non-blocking: Running until the run's result is set, then the result's case.
Non-blocking: Running until the run's result is set, then the result's case.
Attributes
Subscribes to the run's thread from just before this run's claim event, so it replays this run from its start whenever it is called; see GraphRuntime.subscribe. The subscription is the thread's, not the run's: it keeps delivering later runs on the same thread, and holds its parked dispatcher thread until Subscription.cancel is called. Like every subscription, it delivers live only the commits made through this handle's GraphRuntime.
Subscribes to the run's thread from just before this run's claim event, so it replays this run from its start whenever it is called; see GraphRuntime.subscribe. The subscription is the thread's, not the run's: it keeps delivering later runs on the same thread, and holds its parked dispatcher thread until Subscription.cancel is called. Like every subscription, it delivers live only the commits made through this handle's GraphRuntime.