API referencestd/sync

std/sync/error

Public declarations, types, methods, and source contracts for std/sync/error.

On this page

Library guide · API index and notation

This page is generated from the bundled library in this checkout. Signatures and adjacent source comments are reproduced below; the linked guide explains usage, storage, failures, and platform support.

import "std/sync/error"

Names used in signatures

Unqualified names denote this package’s types (including other source files in the same package), language built-ins, or generic parameters such as T. Qualified names use the import aliases below. These aliases belong to the library source; import a dependency yourself to use its alias in your program.

This package has no source imports.

Error

Enum · Source

pub enum Error {
    TimedOut, Cancelled, Closed, InvalidInput, NativeFailure, AllocationFailed,
    InvalidOrdering
}

check

Function · Source

pub fn check(code: i32) -> void!Error

Search every guide, reference page, and API declaration.