package fuseau

  1. Overview
  2. Docs

Module Fuseau_unix.TimerSource

Sourcetype t
Sourceval create : unit -> t

A new timer.

Sourcetype tick_res =
  1. | Wait of float
  2. | Run of Fuseau.Cancel_handle.t -> unit * Fuseau.Cancel_handle.t
  3. | Empty
Sourceval next : t -> tick_res
Sourceval run_after : t -> float -> (Fuseau.Cancel_handle.t -> unit) -> Fuseau.Cancel_handle.t
Sourceval run_every : t -> float -> (Fuseau.Cancel_handle.t -> unit) -> Fuseau.Cancel_handle.t
Sourceval has_tasks : t -> bool
Sourceval num_tasks : t -> int
OCaml

Innovation. Community. Security.