package nanoev

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Nanoev_unixSource

Nano event loop

include module type of struct include Nanoev end
Sourceexception Closed
Sourcemodule Impl = Nanoev.Impl
Sourceval clear : t -> unit

Reset the state

Sourceval wakeup_from_outside : t -> unit
Sourceval step : t -> unit

Run one step of the event loop until something happens

Sourceval close : t -> Unix.file_descr -> unit

Close the file descriptor and clean it up

Sourceval max_fds : t -> int

Maximum number of file descriptors that can be observed at once.

Sourceval on_readable : t -> Unix.file_descr -> 'a -> 'b -> (closed:bool -> 'a -> 'b -> unit) -> unit
Sourceval on_writable : t -> Unix.file_descr -> 'a -> 'b -> (closed:bool -> 'a -> 'b -> unit) -> unit
Sourceval run_after_s : t -> float -> 'a -> 'b -> ('a -> 'b -> unit) -> unit
Sourceval create : unit -> t
OCaml

Innovation. Community. Security.