package fuseau

  1. Overview
  2. Docs

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.