v2026.11.2
All Bundles
Bundle

System support for threads and runtime concurrency

Task

A single child task: runs a captured closure on its own Thread, storing the result (or, by convention, an error value) and a completion flag.

Inherits: Thread

Operations

DidRun #

True only if the body actually executed (false if boundary-cancelled).

method : public : DidRun() ~ Bool

GetResult #

The closure's return value (Nil if it was cancelled before running).

method : public : GetResult() ~ System.Base

IsDone #

True once Run has finished (whether it executed the body or was skipped).

method : public : IsDone() ~ Bool