Skip to main content

Module subtask

Module subtask 

Source
Expand description

Placement policy for child-interpreter subtasks.

Worker placement is the default. Embedders with a deliberately single-threaded host may scope an execution tree to current-thread placement explicitly.

Structs§

SubtaskPlacementParseError
An operator supplied a placement outside the runtime-owned vocabulary.

Enums§

SubtaskPlacement
Where a subtask runs.

Constants§

PLACEMENT_ENV
The environment variable that selects placement for a whole process.
PLACEMENT_VALUES
Canonical values accepted for PLACEMENT_ENV. The environment registry consumes this same vocabulary, so startup validation and placement parsing cannot drift.

Functions§

placement
The placement new subtasks created on this thread will use.
scope_placement
Run inner with placement installed for every subtask its execution tree creates. The override rides [AmbientExecutionScope], so it survives the awaits and thread migrations inside inner.