package fuseau

  1. Overview
  2. Docs
type t
val create : unit -> t

A new timer.

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

Innovation. Community. Security.