What problem does it solve?
Eio concurrency patterns address the challenge of writing structured, safe, and scalable asynchronous OCaml code by providing explicit resource handling, cancellation, and fiber orchestration.
Core Features & Use Cases
- Structured concurrency with switches to manage lifecycles and deterministic cleanup
- Primitives for file, network, and time operations with explicit capabilities
- Testing and mocking support via Eio_mock for deterministic tests
- Integration patterns with cohttp-eio and bytesrw for streaming and HTTP clients
- Real-world use cases including parallel data processing, resilient servers, and streaming pipelines
Quick Start
Launch an OCaml program that uses Eio to orchestrate fibers, switches, and network I/O with structured concurrency.