Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Module

System.Concurrency.Tasks

module System.Concurrency.Tasks

Completion and asynchronous composition

Task, Promise and TaskOutcome describe completion, while TaskQueue provides the current dispatch mechanism. Composition and propagation helpers connect operations; expected application failures remain values such as Result.

See Tasks and callbacks for supported execution and ownership contracts. A task is not inherently a worker thread, and future scheduler or green-thread designs are not part of this preview's API promise.

Types

7 items
Promise<T> Producer authority to complete or cancel one task.
Task Creates completed tasks or submits work with runtime-selected execution (development).
Task<T> A consumer handle for one eventual value or cancellation.
TaskOutcome Contains the Completed and Cancelled cases used by TaskOutcome values.
TaskOutcome<T> Describes completion or cancellation of a task.
TaskQueue A FIFO callback dispatcher within one guest invocation.
TaskState The observable state of a task.

Type extensions

2 items
TaskOperators for Task<T> Transforms or chains task completion while preserving cancellation.
TaskResultOperators for Task<Result<T, E>> Transforms successful results inside tasks while preserving expected errors and cancellation.