Scoop API

scoop:scoop.core:0.1.0

(root package)

API

  • struct AccessorInfo

    A property accessor's own identity, visibility, annotations, and implementation category.

  • enum AccessorKind

    Classifies storage, constant, explicit-body, and abstract property accessors.

  • struct AccessorRef

    The identity of one accessor declaration. The stored identity is opaque; display names are not substitutes for it.

  • interface Add

    The generic operator contract used for a + b. Operand and result types are chosen by the implementation.

  • interface AddAssign

    The generic operator contract used for a += b. Operand and result types are chosen by the implementation.

  • struct AnnotationArgument

    An evaluated annotation argument retaining both its parameter identity and declared constant type.

  • enum AnnotationAtomType

    The non-array categories allowed as elements of an annotation array.

  • struct AnnotationDeclarationInfo

    Describes an annotation declaration, its visibility, constructor parameters, and own annotations.

  • struct AnnotationInfo

    One applied annotation with resolved argument values bound to the declaring parameters.

  • struct AnnotationKey

    The identity of an annotation declaration, distinct from its display spelling.

  • struct AnnotationParameterInfo

    A declared annotation parameter with its accepted constant type and optional default.

  • enum AnnotationParameterType

    The supported scalar, integer-enum, nested-annotation, or homogeneous-array parameter categories.

  • enum AnnotationTarget

    The declaration and type-use positions supported by annotation target restrictions.

  • enum AnnotationValue

    An evaluated annotation constant. Floating-point payloads retain their raw bits, and enum values retain variant identity.

  • class Any

    The common reference root. Value types can be boxed when a reference representation is required.

  • class ArithmeticException

    Reports an invalid checked arithmetic operation, including integer division by zero.

  • class Array

    A fixed-size array with immutable element slots and zero-based Long indexing. Copy conversion creates independent slots while preserving element values or references.

  • class ArrayList

    A growable indexed list. Appending grows storage geometrically; insertion and removal shift later elements. Clearing releases references in occupied slots.

  • class Atomic

    A lock-protected cell for any value type, including values containing managed references. Operations copy the whole value under the cell lock.

  • class AtomicBoolean

    A shared atomic cell. Memory-order arguments must be compile-time enum variants. Loads permit Relaxed, Acquire, or SeqCst; stores permit Relaxed, Release, or SeqCst. Read-modify-write operations permit every order. Compare-exchange failure order cannot release or be stronger than success order.

  • class AtomicInt

    A shared atomic cell. Memory-order arguments must be compile-time enum variants. Loads permit Relaxed, Acquire, or SeqCst; stores permit Relaxed, Release, or SeqCst. Read-modify-write operations permit every order. Compare-exchange failure order cannot release or be stronger than success order.

  • class AtomicLong

    A shared atomic cell. Memory-order arguments must be compile-time enum variants. Loads permit Relaxed, Acquire, or SeqCst; stores permit Relaxed, Release, or SeqCst. Read-modify-write operations permit every order. Compare-exchange failure order cannot release or be stronger than success order.

  • class AtomicRef

    A shared atomic cell. Memory-order arguments must be compile-time enum variants. Loads permit Relaxed, Acquire, or SeqCst; stores permit Relaxed, Release, or SeqCst. Read-modify-write operations permit every order. Compare-exchange failure order cannot release or be stronger than success order. Reference comparison uses identity, not user-defined equality.

  • enum AtomicTypeKind

    Distinguishes fixed integer, Boolean, and managed-reference atomic representations.

  • interface BlockingWork

    One ordinary managed computation that may block its worker thread.

  • struct Boolean

    The two logical values true and false, with Boolean negation and scalar codec support.

  • typealias Byte

    A transparent alias for [Int8] with the same representation and operations.

  • class CancellableContinuation

    Arbitrates result delivery and cancellation so only one terminal outcome wins.

  • class CancellationException

    The terminal exception used for cooperative job cancellation.

  • struct Char

    One Unicode scalar value. Surrogates are excluded; a Char is neither a UTF-8 byte nor a grapheme cluster.

  • class CharRange

    An immutable range of Unicode scalar values. Iteration and step alignment skip the surrogate interval, so U+D7FF and U+E000 are adjacent.

  • class CharacterCodingException

    Reports malformed UTF-8 and the byte offset where validation failed.

  • class ClassCastException

    Thrown when a checked cast cannot produce the requested runtime type.

  • struct ClassInfo

    A class's base type, interfaces, declared properties, physical storage, constructors, and finality.

  • interface Closeable

    A disposable resource whose cleanup operation is named close.

  • interface Collection

    A finite iterable collection with a Long element count.

  • interface Compare

    The generic ordered-comparison protocol. Only the sign of compareTo matters to relational operators.

  • interface Component1

    The generic operator contract used for the first destructured component. Operand and result types are chosen by the implementation.

  • interface Component2

    The generic operator contract used for the second destructured component. Operand and result types are chosen by the implementation.

  • struct ConstructorInfo

    Describes a constructor and its parameters; metadata does not itself invoke the constructor.

  • enum ConstructorKind

    Distinguishes primary, secondary, and enum-variant constructors.

  • struct ConstructorRef

    The identity of one constructor declaration. The stored identity is opaque; display names are not substitutes for it.

  • interface Contains

    The generic operator contract used for element in container. Operand and result types are chosen by the implementation.

  • interface Continuation

    Receives exactly one terminal value or exception from a coroutine. It does not itself provide scheduling or structured cancellation.

  • interface CoroutineExecutor

    Owns task admission and the queues used by registered computations.

  • class CoroutineScope

    Launches child computations associated with one parent job and a default executor.

  • interface CoroutineWork

    One managed coroutine drive, invoked exactly once after submission.

  • annotation DebugIgnore

    Omits an annotated field or property from debug output.

  • enum DebugLayout

    Controls whether debug output is compact or arranged on indented lines.

  • struct DebugOptions

    Controls debug layout and maximum depth, item count, and string length. Limits must be nonnegative and truncate presentation rather than altering the observed value.

  • object DebugPrinter

    Formats ValueView observations with cycle handling, redaction, and bounded presentation.

  • annotation DebugRedact

    Substitutes the configured text for an annotated field or property without exposing its value.

  • enum DeclarationVisibility

    The visibility recorded for an individual declaration, including local declarations.

  • interface Decoder

    A format backend positioned at one value. Select a keyed record, unkeyed sequence, or single scalar container according to the value's representation.

  • class DecodingException

    Reports a decoding failure with the backend's path to the affected value.

  • interface Decrement

    The generic operator contract used for --a or a--. Operand and result types are chosen by the implementation.

  • class Deferred

    A structured child job carrying one eventual result or failure.

  • interface Disposable

    A resource with explicit cleanup. Whether repeated disposal is accepted is specified by each implementation.

  • interface Div

    The generic operator contract used for a / b. Operand and result types are chosen by the implementation.

  • interface DivAssign

    The generic operator contract used for a /= b. Operand and result types are chosen by the implementation.

  • annotation DocAlias

    Adds a search keyword to a declaration's generated documentation.

  • annotation DocHidden

    Omits a declaration and its contained API entries from generated documentation.

  • struct Double

    IEEE 754 binary64 floating-point values, including infinities, signed zero, and NaNs. Default equality treats all NaNs as equal and both zeros as equal; [ieeeCompare] provides unordered IEEE comparison. Arithmetic uses round-to-nearest, ties-to-even.

  • interface Encoder

    A format backend positioned at one value. Select a keyed record, unkeyed sequence, or single scalar container according to the value's representation.

  • class EncodingException

    Reports a encoding failure with the backend's path to the affected value.

  • struct EnumInfo

    Payload variants and implemented interface type uses of an enum.

  • interface Equals

    The operator protocol for same-domain value equality. Implementations used with Hash must assign equal values equal hashes.

  • class Exception

    An ordinary throwable carrying an optional human-readable message.

  • class ExecutorClosedException

    Raised when an executor can no longer admit the requested task.

  • interface ExecutorTask

    Keeps an executor available until the task and its completion callback have exited.

  • struct FieldInfo

    Describes one storage field with identity, owner, type use, order, annotations, visibility, origin, and optional constructor-parameter association.

  • struct FieldRef

    The identity of one field declaration. The stored identity is opaque; display names are not substitutes for it.

  • struct Float

    IEEE 754 binary32 floating-point values, including infinities, signed zero, and NaNs. Default equality treats all NaNs as equal and both zeros as equal; [ieeeCompare] provides unordered IEEE comparison. Arithmetic uses round-to-nearest, ties-to-even.

  • typealias Float32

    A transparent alias for [Float] with the same representation and operations.

  • typealias Float64

    A transparent alias for [Double] with the same representation and operations.

  • struct ForeignCallback

    Pairs a callable native entry with the context pointer that must be passed at its declared context argument position.

  • enum ForeignCallbackMode

    Controls whether a managed callback registration accepts repeated native invocation.

  • enum ForeignCallbackState

    The observable lifecycle of a registered managed callback.

  • struct FunPtr

    A native function address with a statically checked function signature; it does not own callback state.

  • struct FunctionSuspendRegistration

    Adapts a continuation-registration function to the object-based suspension protocol.

  • struct FunctionSuspendTask

    Adapts a suspending function value to the object-based coroutine task protocol.

  • struct FunctionTypeInfo

    A concrete function type, including suspend effect, optional receiver, ordered parameters, and result type use.

  • struct GCLeafFunPtr

    A native function address whose caller promises the GC-leaf contract. Its machine representation matches FunPtr, but the call mode is part of its static type.

  • struct GcHandle

    An outstanding native handle keeping a managed reference alive without promising a stable object address. Copying the token does not retain it.

  • annotation GenerateWith

    Selects a host source generator for existing interface implementations. Each interface string is resolved in the annotated implementation's scope. Conditional implementations, including inherited ones, keep their original bounds.

  • interface Hash

    Provides a Long hash consistent with the type's value equality; it is not a cryptographic digest.

  • enum IeeeComparison

    The result of an IEEE numerical comparison, including an explicit unordered result for NaN.

  • class IllegalArgumentException

    Reports an argument that violates an operation's preconditions.

  • class IllegalStateException

    Reports an operation invalid for the object's current state.

  • interface Increment

    The generic operator contract used for ++a or a++. Operand and result types are chosen by the implementation.

  • interface IndexGet

    The generic operator contract used for a[index]. Operand and result types are chosen by the implementation.

  • interface IndexGet2

    The generic operator contract used for a[first, second]. Operand and result types are chosen by the implementation.

  • class IndexOutOfBoundsException

    Reports an index or slice boundary outside the valid range.

  • interface IndexSet

    The generic operator contract used for a[index] = value. Operand and result types are chosen by the implementation.

  • interface IndexSet2

    The generic operator contract used for a[first, second] = value. Operand and result types are chosen by the implementation.

  • struct Int

    A signed integer value with arithmetic and comparison operations.

  • struct Int16

    A 16-bit signed integer. Arithmetic wraps modulo 2^16; division by zero throws [ArithmeticException]. Conversions are explicit and preserve the language's fixed-width rules on every target.

  • typealias Int32

    A transparent alias for [Int] with the same representation and operations.

  • typealias Int64

    A transparent alias for [Long] with the same representation and operations.

  • struct Int8

    A 8-bit signed integer. Arithmetic wraps modulo 2^8; division by zero throws [ArithmeticException]. Conversions are explicit and preserve the language's fixed-width rules on every target.

  • class IntRange

    An integer progression with a fixed direction, positive step, and inclusive or exclusive endpoint. Iteration checks the endpoint before arithmetic can wrap.

  • struct IntegerEnumInfo

    The underlying integer type, declared values, and interfaces of an integer-backed enum.

  • struct IntegerEnumVariantInfo

    A declared integer-enum variant retaining its identity, annotations, order, and exact integer value.

  • struct IntegerEnumView

    The active integer-backed enum value with its declared variant metadata.

  • enum IntegerValue

    An integer annotation value retaining its declared width and signedness.

  • struct InterfaceInfo

    An interface's parent interfaces and declared properties.

  • struct IntrinsicInfo

    The representation category of a compiler-defined type.

  • enum IntrinsicKind

    The compiler-defined representation category of an intrinsic type.

  • interface Invoke

    The generic operator contract used for a(argument). Operand and result types are chosen by the implementation.

  • interface Invoke0

    The generic operator contract used for a(). Operand and result types are chosen by the implementation.

  • interface Invoke2

    The generic operator contract used for a(first, second). Operand and result types are chosen by the implementation.

  • interface Iterable

    A value that supplies an [Iterator] for the for-loop protocol.

  • interface Iterator

    A one-way cursor whose [next] operation returns Some(value) or None at the end.

  • class Job

    Tracks a coroutine and its structured children. Completion waits for children; cancellation requests propagate to children and registered handlers.

  • interface KeyedDecodingContainer

    A named-field record container. Finish the record with end after processing its fields.

  • interface KeyedEncodingContainer

    A named-field record container. Finish the record with end after processing its fields.

  • interface List

    An ordered collection with zero-based Long indexing.

  • class ListInspector

    Observes list elements lazily using an explicit element inspector.

  • struct Long

    A 64-bit signed integer. Arithmetic wraps modulo 2^64; division by zero throws [ArithmeticException]. Conversions are explicit and preserve the language's fixed-width rules on every target.

  • class LongRange

    An integer progression with a fixed direction, positive step, and inclusive or exclusive endpoint. Iteration checks the endpoint before arithmetic can wrap.

  • struct MaybeUninit

    Storage for a value whose initialization is managed explicitly. An uninitialized wrapper is valid storage, but reading its payload requires the unsafe caller to establish full initialization.

  • enum MemberName

    A declared member name or a positional payload index.

  • struct MemberView

    Pairs member metadata with a deferred read. Reading may execute a property getter and may fail.

  • enum MemoryOrder

    The ordering of an atomic operation relative to other memory accesses. Allowed combinations depend on the operation.

  • class MissingContextException

    Reports a required context value that is absent at runtime.

  • interface Mul

    The generic operator contract used for a * b. Operand and result types are chosen by the implementation.

  • interface MulAssign

    The generic operator contract used for a *= b. Operand and result types are chosen by the implementation.

  • class MutableArray

    A fixed-size array with replaceable element slots and zero-based Long indexing. Use [ArrayList] when the number of elements must change.

  • interface MutableList

    An ordered collection supporting element replacement, insertion, removal, and clearing.

  • class MutableListInspector

    Observes a mutable list through an explicit element inspector; it does not freeze or copy the list.

  • struct NominalRef

    The identity of one nominal declaration. The stored identity is opaque; display names are not substitutes for it.

  • interface Not

    The generic operator contract used for !a. Operand and result types are chosen by the implementation.

  • class Nothing

    The uninhabited result type of computations that do not return normally.

  • struct ObjectInfo

    A singleton's base, interfaces, properties, storage, and optional companion host identity.

  • enum ObservedMember

    Connects an observed member to its declared field or property metadata.

  • class OpaqueInspector

    Observes any T as opaque text without exposing fields or reference identity.

  • struct OpaqueValue

    A descriptive placeholder for a value whose internals are intentionally not exposed.

  • enum Option

    A value that is either [Some] or [None]. The spelling T? denotes Option<T>; absence is represented explicitly and can be matched exhaustively.

  • struct ParameterInfo

    Describes a value parameter, including its annotated type, position, default availability, vararg status, and declared member association.

  • enum ParameterMember

    Connects a constructor parameter to the field or property it declares, when applicable.

  • struct ParameterRef

    The identity of one parameter declaration. The stored identity is opaque; display names are not substitutes for it.

  • struct PinnedPtr

    An outstanding explicit pin that keeps a managed object at a stable address until unpinned. Copying the token does not acquire another pin.

  • enum PointerTypeInfo

    Distinguishes native data pointers from native function pointers.

  • struct PropertyInfo

    Describes a property independently of its storage, including accessor visibility, override identities, and constructor association.

  • struct PropertyRef

    The identity of one property declaration. The stored identity is opaque; display names are not substitutes for it.

  • enum PropertyStorage

    Describes whether a property uses backing storage, a delegate, or only accessor computation.

  • struct Ptr

    A typed native data address. Unsafe users must ensure valid lifetime, alignment, bounds, and access permissions; pointer values do not own or root their pointees.

  • interface RangeTo

    The generic operator contract used for a..b. Operand and result types are chosen by the implementation.

  • interface RangeUntil

    The generic operator contract used for a..<b. Operand and result types are chosen by the implementation.

  • struct RecordView

    The members of a record plus an optional view of its base subobject.

  • interface Rem

    The generic operator contract used for a % b. Operand and result types are chosen by the implementation.

  • interface RemAssign

    The generic operator contract used for a %= b. Operand and result types are chosen by the implementation.

  • annotation Repeatable

    Allows multiple applications of the annotated annotation type at one target.

  • class ResourceUseException

    Preserves both failures when a resource body and its cleanup throw.

  • enum ScalarValue

    A scalar observation retaining its logical category and numeric representation.

  • struct SequenceView

    An indexed lazy sequence observation. Its size and reads follow the underlying inspector's mutation contract.

  • annotation Serialize

    Controls derived serialization: rename chooses the external field name, required distinguishes absence, emitNull preserves absent optionals as null, and ignore excludes a member.

  • typealias Short

    A transparent alias for [Int16] with the same representation and operations.

  • interface SingleValueDecodingContainer

    The format backend's scalar and explicit-null operations. Supported representations and conversion errors belong to the backend.

  • interface SingleValueEncodingContainer

    The format backend's scalar and explicit-null operations. Supported representations and conversion errors belong to the backend.

  • struct SourceLocation

    The caller's source file, one-based line and column, and enclosing function and type names.

  • enum StorageOrigin

    Explains why a storage slot exists, separating declared storage from property backing and compiler-created slots.

  • class String

    Immutable UTF-8 text.

  • class StringBuilder

    Accumulates UTF-8 bytes and copies immutable snapshots when converted to text. The optional initial capacity reserves bytes without adding content.

  • class StringWriter

    An in-memory [TextWriter] backed by a [StringBuilder].

  • struct StructInfo

    Stored value fields, constructors, and implemented interface type uses of a struct.

  • interface Sub

    The generic operator contract used for a - b. Operand and result types are chosen by the implementation.

  • interface SubAssign

    The generic operator contract used for a -= b. Operand and result types are chosen by the implementation.

  • interface SuspendRegistration

    Registers completion of an externally driven suspension.

  • interface SuspendTask

    An object-based suspending computation accepted by the coroutine start intrinsic.

  • annotation Target

    Restricts the declaration or type-use positions where an annotation may be applied.

  • interface TextWriter

    A destination for Unicode text that does not prescribe storage or ownership.

  • class Throwable

    The common reference base for values that can be thrown and caught.

  • interface ToString

    Provides a human-readable textual representation without prescribing a serialization format.

  • struct TupleElementInfo

    A tuple element's zero-based position, label, and annotated type use.

  • struct TupleInfo

    The ordered, annotated element types of a tuple.

  • struct TupleView

    An indexed lazy tuple observation with a fixed reported size.

  • struct TypeDescription

    Combines a concrete type identity, its declaration annotations, and its structural shape.

  • struct TypeInfo

    A typed entry point into concrete type metadata.

  • class TypeRef

    A concrete type identity with a display name and lazily available description. Identity comparison is independent of display spelling.

  • enum TypeShape

    The structural category of a concrete type and its category-specific declaration metadata.

  • struct TypeUseChild

    One nested type use and the role it occupies within its parent.

  • struct TypeUseInfo

    A concrete type at one signature position, retaining annotations and nested type-use children.

  • enum TypeUseRole

    The position of a nested type inside a generic, tuple, function, or pointer type use.

  • typealias UByte

    A transparent alias for [UInt8] with the same representation and operations.

  • struct UInt

    A 32-bit unsigned integer. Arithmetic wraps modulo 2^32; division by zero throws [ArithmeticException]. Conversions are explicit and preserve the language's fixed-width rules on every target.

  • struct UInt16

    A 16-bit unsigned integer. Arithmetic wraps modulo 2^16; division by zero throws [ArithmeticException]. Conversions are explicit and preserve the language's fixed-width rules on every target.

  • typealias UInt32

    A transparent alias for [UInt] with the same representation and operations.

  • typealias UInt64

    A transparent alias for [ULong] with the same representation and operations.

  • struct UInt8

    A 8-bit unsigned integer. Arithmetic wraps modulo 2^8; division by zero throws [ArithmeticException]. Conversions are explicit and preserve the language's fixed-width rules on every target.

  • class UIntRange

    An integer progression with a fixed direction, positive step, and inclusive or exclusive endpoint. Iteration checks the endpoint before arithmetic can wrap.

  • struct ULong

    A 64-bit unsigned integer. Arithmetic wraps modulo 2^64; division by zero throws [ArithmeticException]. Conversions are explicit and preserve the language's fixed-width rules on every target.

  • class ULongRange

    An integer progression with a fixed direction, positive step, and inclusive or exclusive endpoint. Iteration checks the endpoint before arithmetic can wrap.

  • typealias UShort

    A transparent alias for [UInt16] with the same representation and operations.

  • interface UnaryMinus

    The generic operator contract used for -a. Operand and result types are chosen by the implementation.

  • interface UnaryPlus

    The generic operator contract used for +a. Operand and result types are chosen by the implementation.

  • struct Unit

    The zero-sized value returned by operations that have no meaningful result.

  • object UnitDecoder

    Represents the zero-sized Unit value as an explicit null scalar.

  • object UnitEncoder

    Represents the zero-sized Unit value as an explicit null scalar.

  • object UnitInspector

    Observes Unit as a scalar without reference identity.

  • interface UnkeyedDecodingContainer

    An ordered sequence container. Finish the sequence with end after processing its elements.

  • interface UnkeyedEncodingContainer

    An ordered sequence container. Finish the sequence with end after processing its elements.

  • class UnwrapException

    Thrown when a forced optional unwrap encounters None.

  • interface ValueDecoder

    A format-independent decoding strategy for T, usable explicitly or through a type companion.

  • class ValueDecoderFunction

    Adapts an ordinary function to the value decoding protocol.

  • interface ValueEncoder

    A format-independent encoding strategy for T, usable explicitly or through a type companion.

  • class ValueEncoderFunction

    Adapts an ordinary function to the value encoding protocol.

  • interface ValueInspector

    Creates a typed observation of a value for structured inspection without defining a serialization format.

  • class ValueInspectorFunction

    Adapts a function returning ValueView to the inspection protocol.

  • class ValueObservation

    A function-backed observation whose shape is evaluated on request.

  • enum ValueShape

    The observable scalar, record, variant, tuple, sequence, or opaque representation of a value.

  • interface ValueView

    A typed observation with an optional reference identity and lazily described shape. It need not be a snapshot of mutable data.

  • struct VariantInfo

    Describes a payload enum variant, its declaration order, fields, annotations, and constructor.

  • enum VariantPayload

    Distinguishes a unit variant from named or positional payload fields.

  • struct VariantRef

    The identity of one variant declaration. The stored identity is opaque; display names are not substitutes for it.

  • struct VariantView

    The active payload variant and its observable members.

  • function addressOf

    Borrows the address of addressable value storage. The unsafe caller must not let the pointer outlive that storage.

  • function alignOf

    Returns the target ABI alignment in bytes of a concrete value type.

  • function annotationKey

    Obtains the compiler-provided identity and description of annotation type A.

  • function asFunPtr

    Returns the same native function address with the NativeSafe calling boundary.

  • function asGCLeaf

    Treats the same native function address as a GC-leaf call target. The caller must ensure that every invocation satisfies the GC-leaf contract.

  • function blocking

    Suspends while a synchronous managed function runs on the current executor's blocking pool. Cancellation can withdraw a queued call. Once the function starts, its actual result or failure is delivered after cleanup, even when the caller's job has been cancelled. Requires an executor.

  • function contextOrNone

    Returns the current task's binding for the exact type T, or None when it is absent. The lookup does not allocate, throw, or search for compatible subtypes.

  • function coroutineScope

    Runs a block in a child scope and waits for its children before returning the block's result.

  • function currentCoroutineExecutorOrNone

    Returns the executor selected for the current coroutine, or None for an independent entry.

  • function currentJobOrNone

    Returns the job installed for the currently running coroutine, or None outside a job context.

  • function currentSourceLocation

    Returns the source location of this call.

  • function encodeList

    Encodes list elements in index order using the supplied element codec, then completes the sequence container.

  • function ensureActive

    Checks cancellation of the current job. With no current job, this operation does nothing.

  • function eprint

    Writes the value's ToString result to standard error without a line terminator.

  • function eprintln

    Writes the value's ToString result followed by a newline to standard error.

  • function exit

    Terminates the process with the given status. It does not return to the caller.

  • function findAnnotations

    Returns every application with the requested annotation identity, preserving repeated annotations and input order.

  • function flushOutput

    Flushes the standard-output stdio buffer. It does not flush standard error or promise line-level atomicity.

  • function foreignCallback

    Registers a managed non-suspending function behind a native trampoline. F must be an explicit concrete C-safe signature; contextIndex and mode are compile-time constants, and the context parameter is Ptr. Reusable owners release after native unregister. A successful one-shot launch transfers its worker ownership to the callback; retain a separate observer before that transfer when needed.

  • function foreignCallbackFailure

    Returns the captured callback exception when invocation failed, or None when no failure is recorded.

  • function foreignCallbackState

    Reads the lifecycle state of a live callback registration.

  • function gcAdjustPressure

    Adds a signed native-memory pressure hint. This leaf operation does not itself allocate or collect; release external memory with a matching negative adjustment.

  • function gcCollect

    Forces a collection for diagnostics and runtime tests.

  • function gcStats

    Returns the runtime's live managed-object count for diagnostics and tests.

  • function getGcHandle

    Acquires a stable native handle that roots the managed reference until released.

  • function nonCancellableScope

    Runs a structured scope detached from parent cancellation. The scope still owns a job whose own cancellation and child completion rules apply.

  • function pin

    Acquires an explicit pin on a managed object. Balance each acquired pin with exactly one unpin.

  • function print

    Writes the value's ToString result to standard output without a line terminator.

  • function println

    Writes the value's ToString result followed by a newline to standard output.

  • function releaseForeignCallback

    Releases one acquired registration reference. Coordinate with native owners so no invocation can use a freed registration.

  • function releaseGcHandle

    Releases this acquired handle and returns the managed reference; do not reuse the released token.

  • function retainForeignCallback

    Acquires another reference to the callback registration for independent native ownership.

  • function sizeOf

    Returns the target ABI size in bytes of a concrete value type.

  • function startCoroutine

    Starts a suspending computation and delivers its eventual value or exception to completion. This primitive does not create an event loop or a structured child job.

  • function startDispatchedCoroutine

    Starts a suspending function by submitting its first drive to the selected executor.

  • function suspendCancellableCoroutine

    Registers a suspension tied to the current job when one exists. Cancellation competes with result delivery through the supplied continuation.

  • function suspendCoroutine

    Suspends until the supplied registration completes its continuation. Use the cancellable form when registration must follow the current job.

  • function toArray

    Copies the list in index order into an independent immutable array. Elements are shallow-copied; this is not a concurrent snapshot.

  • function toChar

    Converts an Int Unicode scalar number to Char. Negative values, surrogate numbers, and values above U+10FFFF throw [IllegalArgumentException].

  • function toMutableArray

    Copies the list in index order into an independent mutable array. Later container mutations are independent.

  • function typeInfo

    Obtains compiler-provided metadata for the concrete type T. It describes types and declarations; it does not enable arbitrary dynamic invocation.

  • function unpin

    Releases this acquired pin and returns the managed reference; do not reuse the released token.

  • function use

    Runs the block and always disposes the receiver on exit, including exceptional exit. If both body and cleanup fail, throws ResourceUseException containing both failures.

  • function withCString

    Copies the string into scoped NUL-terminated UTF-8 storage. Embedded NUL is rejected; the pointer must not escape the callback.

  • function withDataPointer

    Borrows contiguous array element storage for the callback, passing its pointer and element count. The pointer is valid only during the callback and must not escape.

  • function withExecutor

    Runs a structured child scope on the selected executor and waits for all of its children.

  • function withUtf8Bytes

    Borrows the string's UTF-8 bytes for the callback, without a terminating NUL. The pointer is valid only during the callback.

  • function write

    Writes UTF-8 text to standard output without adding a line terminator.

  • function writeError

    Writes UTF-8 text to standard error without adding a line terminator.

  • function yieldCoroutine

    Checks cancellation and, when an executor is present, yields to its runnable queue.