Skip to main content

Module task

Module task 

Source
Expand description

Task runs: concurrent, cancellable behaviors an interpreter hosts.

A task run is a long-running unit of behavior started from a Call and tracked by a serializable TaskHandle. It advances with the interpreter’s normal tick — spawning one is non-blocking — and everything an outside observer needs to follow or stop it travels as data on the handle, so it can be driven through the value plane without knowing how the interpreter hosts the run.

Structs§

TaskHandle
The serializable contract for one run’s lifecycle: everything needed to follow and stop it, as data.
TaskId
Identity of a live task run.

Enums§

RunPolicy
How a run coexists with the runs an interpreter already hosts.