package containers

  1. Overview
  2. Docs
type t

A scheduler for events. It runs in its own thread.

val create : unit -> t

A new timer.

val after : t -> float -> unit future

Create a future that waits for the given number of seconds, then awakens with ()

val at : t -> float -> unit future

Create a future that evaluates to () at the given Unix timestamp

val stop : t -> unit

Stop the given timer, cancelling pending tasks

OCaml

Innovation. Community. Security.