Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
Snapshot · Oct 24, 2026 · Frozen documentation

DirectoryBlockingWork

Captures borrowed path backing and copied selection arguments.

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

import std.fs;

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

pub init(Path: PathView, Links: LinkPolicy)

pub init(Path: PathView, Links: LinkPolicy)

Captures borrowed path backing and copied selection arguments. Path: View loaned through worker completion. Links: Copied final-component selection policy.

Invoke

pub readonly fn Invoke() -> Result<usize, IoError>

Runs exactly one safe platform step inside bounded worker admission. Return: Exact native result, never overridden by later cancellation.

Create

pub static fn Create(Token: usize) -> DirectoryReadWork

Creates copied handoff arguments without scheduling or I/O. Token: Authenticated held-object token borrowed through the parent task. Return: Independent Data arguments; the parent retains the original token owner.

Invoke

pub readonly fn Invoke() -> Result<DirectoryEntry?, IoError>

Runs exactly one safe platform step inside bounded worker admission. Return: Exact native result, never overridden by later cancellation.

Create

pub static fn Create(Token: usize) -> DirectoryCloseWork

Creates copied handoff arguments without scheduling or I/O. Token: Authenticated held-object token borrowed through the parent task. Return: Independent Data arguments; the parent retains the original token owner.

Invoke

pub readonly fn Invoke() -> Result<void, IoError>

Runs exactly one safe platform step inside bounded worker admission. Return: Exact native result, never overridden by later cancellation.

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