Skip to main content

Module state

Module state 

Source
Expand description

Per-run state visible to host functions.

The plan-1 host fns global HostState does not carry per-run context — the orchestrator does. Host fns that consult per-run state read it from this OnceLock<Arc<OrchestratorState>> that the orchestrator installs at the start of each run.

Structs§

OrchestratorState
Live state visible to every host fn while an orchestrator run is active.

Functions§

clear
Clear the installed state. Idempotent (no-op when nothing was installed). Use at end-of-run.
current
Get a handle to the live state, if any.
install
Install per-run state for the duration of an orchestrator run.