Skip to main content

Module nested

Module nested 

Source
Expand description

Nested bodies: foreach/batch (dynamic fan-out over an array, batches with bounded parallelism and rate pacing, per-batch durable progress, positional collection, on_error: continue slots), iterate (a bounded structured loop with while/until/ max_iterations), parallel (static branches, fan-in object), race (first branch to finish wins, the rest are cancelled) and subgraph (an inline sub-DAG). Body steps are ordinary steps executed under a scope: their run-record ids are <parent>[<index>].<step> (elements / iterations), <parent>{<branch>}.<step> (branches) or <parent>.<step> (subgraph); templates inside a body see item, index, batch, iteration, branch and steps.<sibling> resolved within the scope. The parent step’s wait record carries the durable progress.

Structs§

Scope
The scope a nested step runs in.
Segment
One segment of a scoped id: name, name[i], name{branch}.

Enums§

BodyState
The state of one body instance.

Functions§

is_scoped
Whether an id is nested (has a scope).
parent_of
The parent scope of a scoped id (each[3].classifyeach[3]).
parse_scoped
Parse each[3].classify[each[3], classify].
scoped_id
The scoped id of a body step.
strip_scope_suffix
each[3]each; par{a}par; subsub; nested x[1].y[2]x[1].y.