TaskScope¶
Import: import system.task;
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
TaskScope¶
Owns async and parallel children; its enclosing Task.scope joins every child before returning.
token¶
The inherited cancellation token for this scope and its children.
cancel¶
Requests cooperative cancellation; completion still waits for child cleanup.
spawn¶
Schedules a child immediately and retains it even if its result handle is discarded.
spawn_parallel¶
Schedules CPU work on the runtime's shared worker threads and retains structured ownership.
spawn_on¶
Schedules CPU work on an explicit reusable pool while retaining structured ownership.