nano IO event loop
Find a file
2025-05-01 23:30:00 -04:00
.github/workflows CI 2025-05-01 13:23:53 -04:00
examples/echo echo: emit metrics, allow user to set buf size/buf pool size 2025-05-01 13:23:01 -04:00
src feat(nanoev.picos): dep on iostream, add IO channels+Net 2025-05-01 23:22:26 -04:00
tests wip: echo test 2025-05-01 23:30:00 -04:00
.gitignore initial commit 2024-10-17 22:54:49 -04:00
.ocamlformat ocamlformat 2025-04-30 16:12:44 -04:00
dune-project wip: tests 2025-05-01 23:22:26 -04:00
echo.sh wip: example 2024-12-09 22:32:09 -05:00
Makefile initial commit 2024-10-17 22:54:49 -04:00
nanoev-posix.opam wip: tests 2025-05-01 23:22:26 -04:00
nanoev.opam feat(nanoev.picos): dep on iostream, add IO channels+Net 2025-05-01 23:22:26 -04:00
nanoev_tiny_httpd.opam tiny_httpd: use picos semaphore; tweak pool size, buf size 2025-05-01 13:22:15 -04:00
README.md add readme 2025-02-15 16:56:38 -05:00

nanoev

A minimalistic but modular abstraction for IO event loops.

The goal of this library is to provide a uniform abstraction over multiple system event loops, in a way that plays well with Picos.

Usage

Very basic usage would look like this:

module EV = Nanoev_picos


let () =
  (* use a backend, eg. select *)
  let ev = Nanoev_unix.create () in

  (* install the backend *)
  Nanoev_picos.setup_bg_thread ev;

  (* setup a picos scheduler and use EV.read, EV.write, etc. *)
  

Backends

  • select
  • uring