Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
0.2.0 Preview 1 · Frozen documentation

DelayError

Classifies checked delay validation, cancellation and native scheduling failure.

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.

DelayError

pub enum DelayError

Classifies checked delay validation, cancellation and native scheduling failure.

DelayError.Cancelled

Cancelled;

Cooperative user/runtime lifetime cancellation was observed before result publication.

DelayError.Shutdown

Shutdown;

Native timer infrastructure shut down while this operation was pending.

DelayError.ClockUnavailable

ClockUnavailable;

Monotonic sampling is unavailable on the active target.

DelayError.RangeOverflow

RangeOverflow;

Finite tick normalization or deadline addition exceeds the active native carrier.

DelayError.IncompatibleClockDomain

IncompatibleClockDomain;

Absolute deadline is default/invalid or belongs to an incompatible native monotonic domain.

DelayError.QueueFull

QueueFull;

Native pending timer capacity is full; no timer was left registered.

DelayError.AllocationFailed

AllocationFailed;

Lazy native timer storage could not be allocated.

DelayError.StartupFailed

StartupFailed;

Native synchronization or reactor startup failed.

DelayError.Closed

Closed;

Native timer admission has already closed.

DelayError.InvalidConfiguration

InvalidConfiguration;

Native timer capacity configuration cannot be represented.

DelayError.SchedulingLimit

SchedulingLimit;

Stable timer ordering cannot advance further.

DelayError.RetentionUnavailable

RetentionUnavailable;

Native frame retention cannot reserve its callback pin.

DelayError.InvalidDuration

InvalidDuration;

Relative duration validation failed before any native timer was created.

DelayError.InvalidDuration.Error

Error: DurationError;

Original checked duration error.

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