package uwt

  1. Overview
  2. Docs
libuv bindings

Install

dune-project
 Dependency

Authors

Maintainers

Sources

uwt-0.3.0.tar.gz
sha256=e924c3f80906c44871c62870d9472956ff043a14a4c17e886302bf47e6ca71e1
md5=f611099ba6eae6ea3f6b46a21e30effc

doc/uwt.ext/Uwt_timeout/index.html

Module Uwt_timeout

Timeouts

type t
val set_exn_handler : (exn -> unit) -> unit

set the default handler for exception occurring after a timeout. The function lauched after a timeout should not raise any exception. That's why the default handler will exit the program.

val create : int -> (unit -> unit) -> t

create n f defines a new timeout with n seconds duration. f is the function to be called after the timeout. That function must not raise any exception.

val start : t -> unit

starts a timeout.

val stop : t -> unit

stops a timeout.

val change : t -> int -> unit

changes the duration of a timeout.