nano IO event loop
Find a file
2025-02-16 23:11:28 -05:00
.github/workflows CI 2025-02-16 22:05:43 -05:00
examples/echo detail 2025-02-15 16:56:43 -05:00
src wip: cohttp 2025-02-16 23:11:28 -05:00
tests/unix feat: handle close properly; read/write callbacks are informed about 2025-02-15 16:47:59 -05:00
.gitignore initial commit 2024-10-17 22:54:49 -04:00
.ocamlformat initial commit 2024-10-17 22:54:49 -04:00
dune-project wip: cohttp 2025-02-16 23:11:28 -05: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.opam update 2025-02-15 20:38:20 -05:00
nanoev_cohttp.opam wip: cohttp 2025-02-16 23:11:28 -05:00
nanoev_tiny_httpd.opam update 2025-02-15 20:38:20 -05: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