abi

runtime

Runtime infrastructure (thread pool, channels, scheduling).

Source: src/services/runtime/mod.zig

Availability: Always enabled


API

pub const Context

const source

Runtime context - the always-available infrastructure. This is created automatically by the Framework and provides access to scheduling, concurrency, and memory primitives.

pub fn init(allocator: std.mem.Allocator) Error!*Context

fn source

Initialize the runtime context.

pub fn deinit(self: *Context) void

fn source

Shutdown the runtime context.

pub fn getEngine(self: *Context) Error!*Engine

fn source

Get or create the compute engine.

pub fn createTaskGroup(self: *Context, config: TaskGroupConfig) !TaskGroup

fn source

Create a new task group.

pub fn createFuture(self: *Context, comptime T: type) !Future(T)

fn source

Create a new future.

pub fn createCancellationSource(self: *Context) !CancellationSource

fn source

Create a cancellation source.

pub fn createEngine(allocator: std.mem.Allocator, config: EngineConfig) !Engine

fn source

Create an engine with configuration (2-arg version for compatibility).

pub fn createDefaultEngine(allocator: std.mem.Allocator) !Engine

fn source

Create an engine with default configuration.

pub fn createEngineWithConfig(allocator: std.mem.Allocator, config: EngineConfig) !Engine

fn source

Create an engine with custom configuration.


Generated automatically by zig build gendocs

Zig Skill

Use the $zig Codex skill for ABI Zig 0.16-dev syntax updates, modular build graph guidance, and targeted validation workflows.