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

WhenAnyError

Classifies completion-only wait failure without changing input ownership.

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.

WhenAnyError

pub enum WhenAnyError

Classifies completion-only wait failure without changing input ownership.

WhenAnyError.NoTasks

NoTasks;

There is no input whose completion can win.

WhenAnyError.InvalidTask

InvalidTask;

At least one input handle is empty.

WhenAnyError.AllocationFailed

AllocationFailed;

Native stable wait-set storage cannot be allocated.

WhenAnyError.Closed

Closed;

Runtime root/executor admission is closed.

WhenAnyError.RetentionUnavailable

RetentionUnavailable;

Native frame lifetime cannot be retained for registration.

WhenAnyError.Cancelled

Cancelled;

Only this aggregate wait was cancelled before publication.

WhenAnyError.InvalidConfiguration

InvalidConfiguration;

Captured executor configuration is invalid.

WhenAnyError.StartupFailed

StartupFailed;

Lazy worker startup failed transactionally.

WhenAnyError.StorageFailure

StorageFailure;

Private preparation storage failed; input owners/results remain unchanged.

WhenAnyError.StorageFailure.Reason

Reason: AllocationError;
Documentation snapshot: October 24, 2026 About versions ↗
Searching Development · language & standard library