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

DelayError

Classifies checked delay validation, cancellation and native scheduling failure.

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.

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