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

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. This reference includes the intended 1.0 design; features may be incomplete in the current compiler. 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