Development · Evolving reference
YieldError
Classifies cooperative yield cancellation and checked executor resolution 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.
YieldError
pub enum YieldErrorClassifies 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 ↗