Module Bogue.Timeout

module Timeout: sig .. end

Delayed actions.

Dependency graph

type t 
val add : int -> (unit -> unit) -> t

add delay action will execute action () (in the main thread) after the delay of delay ms.

val cancel : t -> unit

Cancel the Timeout.