Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
Development · Evolving reference

TaskDispatchError

Classifies bounded CPU/blocking admission and cooperative cancellation.

Sn is under heavy development. This reference includes the intended 1.0 design; features may be incomplete in the current compiler. 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 TaskDispatchError

Classifies 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 ↗
Searching Development · language & standard library