fuseau.unix
Fuseau_unix.Timer
fuseau
type t
val create : unit -> t
A new timer.
type tick_res =
| Wait of float
| Run of Fuseau.Cancel_handle.t -> unit * Fuseau.Cancel_handle.t
| 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