lwt
Promises, concurrency, and parallelized I/O
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library lwt_unix
set the default handler for exception occurring after a timeout. The function lauched after a timeout should not raise any exception. The default handler passed the exception to Lwt.async_exception_hook
. The default behavior of that, in turn, is to terminate the process.
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.