0.2.0 Preview 1 · Frozen documentation
SynchronousCallback
Promises that one callback is invoked only before its native call returns.
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.abi
import std.abi;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
SynchronousCallback
pub attribute SynchronousCallbackPromises that one callback is invoked only before its native call returns.
ContextParameter names an optional sibling argument passed back to the callback. Parameter is used only when the annotation is on an import field.
SynchronousCallback.ContextParameter
pub ContextParameter: usize?;Stores an optional zero-based callback-context parameter.
SynchronousCallback.Parameter
pub Parameter: usize?;Stores the optional zero-based pointed callable parameter.
Documentation snapshot: October 24, 2026 About versions ↗