package nanoev

  1. Overview
  2. Docs
Tiny event loop abstraction

Install

Dune Dependency

Authors

Maintainers

Sources

nanoev-0.1.tbz
sha256=2ec6b951b88383b3849240f7cd27e322797fc596dc0b3fc53e9c61b78bab6570
sha512=1e4fe800638102cc5bdcd404d2069f65bc34f429d0b9063c14b0ffebc20e9dad3beff49741304d4b57d98d1895f65ed903f4b11d224505d038fa2afb012d7d4f

doc/nanoev.unix/Nanoev_unix/index.html

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.