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

YieldError

Classifies cooperative yield cancellation and checked executor resolution 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.

YieldError

pub enum YieldError

Classifies cooperative yield cancellation and checked executor resolution failure.

YieldError.Cancelled

Cancelled;

Cooperative token/root cancellation was observed before native publication.

YieldError.InvalidConfiguration

InvalidConfiguration;

Selected native executor configuration cannot be represented.

YieldError.AllocationFailed

AllocationFailed;

Lazy executor storage cannot be allocated.

YieldError.StartupFailed

StartupFailed;

Native executor worker startup failed transactionally.

YieldError.Closed

Closed;

Selected executor no longer accepts this operation.

YieldError.QueueFull

QueueFull;

Selected native admission capacity is full.

YieldError.RetentionUnavailable

RetentionUnavailable;

A checked continuation retention cannot be reserved.

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