libuv

Asynchronous I/O library wrapping libuv for Kit

Files

FileDescription
kit.tomlPackage manifest with metadata and dependencies
src/error.kitLibuvError type for typed error handling
src/loop.kitEvent loop creation, running, and lifecycle
src/main.kitMain module - exports all public functions and types
src/timer.kitTimer scheduling with callbacks and repeat
zig/callback_registry.zigThread-safe storage for Kit closure callbacks
zig/kit_ffi.zigKitValue type and FFI helper functions
zig/libuv.zigComplete libuv C bindings and Kit integration
zig/loop.zigEvent loop FFI exports for Kit
zig/timer.zigTimer FFI exports with callback trampolines
tests/libuv.test.kitTests for types, handles, and API structure
examples/timer-example.kitRepeating timer with counter and loop stop
LICENSEMIT license file

Dependencies

No Kit package dependencies.

Installation

kit add gitlab.com/kit-lang/packages/kit-libuv.git

Usage

import Kit.Libuv

License

MIT License - see LICENSE for details.

Exported Functions & Types

LibuvError

Libuv error type for typed error handling. All libuv operations that can fail return Result T LibuvError.

Variants

LibuvError {message}

Loop

Event loop handle

Variants

Loop {handle}

Timer

Timer handle

Variants

Timer {handle, loop-id}

LibuvError

Libuv error type for typed error handling. All libuv operations that can fail return Result T LibuvError.

Variants

LibuvError {message}

Loop

Event loop handle

Variants

Loop {handle}