package fuseau

  1. Overview
  2. Docs
A simple IO and concurrency library for OCaml 5

Install

Dune Dependency

Authors

Maintainers

Sources

fuseau-0.1.tbz
sha256=8a9339d239aa371d0c4aceb23d7601a1b7da8f42d84542cee30669cc95addb6a
sha512=fa656c7311371344f0c6ebf08c666afc33296558ccc678ed87baf2f9ba54035cd4c5caca4257212416296fcdbdfc1687c46cc2ebea3548c792ea72602b85b832

doc/fuseau/Fuseau/Event_loop/index.html

Module Fuseau.Event_loopSource

Abstraction over an event loop, from the pov of the scheduler.

All the scheduler cares about is running an iteration of the loop, with or without blocking; and interrupting the loop if it's in the middle of blocking.

Sourceclass type t = object ... end

Abstract event loop, inspired by Lwt engine

Sourceval one_step : t -> block:bool -> unit -> unit
Sourceval on_timer : t -> float -> repeat:bool -> (Cancel_handle.t -> unit) -> Cancel_handle.t
Sourceval interrupt_if_in_blocking_section : t -> unit
OCaml

Innovation. Community. Security.