Skip to main content

Module active_plans

Module active_plans 

Source
Expand description

Active RTDL plans: registration, state snapshots, async calls, and cancellation.

Structsยง

CancelAllSnapshot ๐Ÿ”’
Plans and calls captured together when canceling all active plans.
CancelPlanArgs ๐Ÿ”’
JSON arguments selecting a plan to cancel and how long to await completion.
CancelSnapshot ๐Ÿ”’
Calls claimed under the plan lock for cancellation after releasing it.
OpMeta ๐Ÿ”’
One opโ€™s static identity, snapshotted from the plan arena at register time.
PlanRun ๐Ÿ”’
Mutable progress and cancellation state retained for one active plan.
PlanRuntime
Shared active-plan state used for progress queries and cancellation.
RunningAsyncCall
Identifies an in-flight asynchronous capability call so it can be canceled.

Constantsยง

DEFAULT_CANCEL_WAIT_MS ๐Ÿ”’

Functionsยง

error_result ๐Ÿ”’
Build a failed capability result for a builtin.
kind_label ๐Ÿ”’
Label an RTDL node kind (0=sequence, 1=parallel, 2=do).
ok_result ๐Ÿ”’
Build a successful capability result for a builtin.
state_label ๐Ÿ”’
Human-readable label for an RTDL node state (for get_plan_status JSON).
ๆต™ICPๅค‡2023005800ๅท-2 ๆต™ๅ…ฌ็ฝ‘ๅฎ‰ๅค‡33010902005384ๅท