0.2.0 Preview 1 · Frozen documentation
TaskDispatchError
Classifies bounded CPU/blocking admission and cooperative cancellation.
Sn is under heavy development. Reference extracted from this release’s bundled standard library. Public API examples are not an exhaustive compatibility test. Read the matching release guide for tested workflows and limitations. Read the status →
Module std.task
import std.task;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
TaskDispatchError
pub enum TaskDispatchErrorClassifies bounded CPU/blocking admission and cooperative cancellation.
TaskDispatchError.Cancelled
Cancelled;Cancellation was observed before callback invocation.
TaskDispatchError.InvalidConfiguration
InvalidConfiguration;Worker-pool configuration is invalid.
TaskDispatchError.AllocationFailed
AllocationFailed;Lazy executor storage cannot be allocated.
TaskDispatchError.StartupFailed
StartupFailed;Worker startup failed transactionally.
TaskDispatchError.Closed
Closed;Initial-job admission is closed.
TaskDispatchError.QueueFull
QueueFull;Bounded pending initial-job capacity is exhausted.
TaskDispatchError.RetentionUnavailable
RetentionUnavailable;Frame retention cannot be acquired for the accepted job.
Documentation snapshot: October 24, 2026 About versions ↗