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

LockCreationError

Retains the input that could not acquire lock/payload storage. Destroying this error destroys its input normally. Explicit move transfers it; no extra allocation or native owner survives failed creation.

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.sync

import std.sync;

Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.

LockCreationError

pub class LockCreationError<T> where T: Movable

Retains the input that could not acquire lock/payload storage. Destroying this error destroys its input normally. Explicit move transfers it; no extra allocation or native owner survives failed creation. T: Movable uninserted payload.

LockCreationError.Reason

pub Reason: LockError;

Portable failure identity.

LockCreationError.Value

pub Value: T;

Owned input available for retry or normal destruction.

LockCreationError.init

pub init(Reason: LockError, mut Value: T)

Moves failed input and its reason into the error owner. Reason: Exact portable error. Value: Unconsumed input.

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