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 add_ignore : int -> (unit -> unit) -> unit

Same as add except that this does not return the Timeout element.

val cancel : t -> unit

Cancel the Timeout.