libuv
| Kind | ffi-zig |
|---|---|
| Categories | async networking ffi |
| Keywords | libuv async io event-loop networking |
Asynchronous I/O library wrapping libuv for Kit
Files
| File | Description |
|---|---|
kit.toml | Package manifest with metadata and dependencies |
src/error.kit | LibuvError type for typed error handling |
src/loop.kit | Event loop creation, running, and lifecycle |
src/main.kit | Main module - exports all public functions and types |
src/timer.kit | Timer scheduling with callbacks and repeat |
zig/callback_registry.zig | Thread-safe storage for Kit closure callbacks |
zig/kit_ffi.zig | KitValue type and FFI helper functions |
zig/libuv.zig | Complete libuv C bindings and Kit integration |
zig/loop.zig | Event loop FFI exports for Kit |
zig/timer.zig | Timer FFI exports with callback trampolines |
tests/libuv.test.kit | Tests for types, handles, and API structure |
examples/timer-example.kit | Repeating timer with counter and loop stop |
LICENSE | MIT license file |
Dependencies
No Kit package dependencies.
Installation
kit add gitlab.com/kit-lang/packages/kit-libuv.gitUsage
import Kit.LibuvLicense
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}