Time.TimeoutTimeout values.
v clock duration is a timeout of duration, as measured by clock. Internally, this is just the tuple (clock, duration).
seconds clock duration is a timeout of duration seconds, as measured by clock.
val none : tnone is an infinite timeout.
val run :
t ->
(unit -> ('a, 'e) Stdlib.result) ->
('a, [> `Timeout ] as 'e) Stdlib.resultrun t fn runs fn () but cancels it if it takes longer than allowed by timeout t.
val run_exn : t -> (unit -> 'a) -> 'arun_exn t fn runs fn () but cancels it if it takes longer than allowed by timeout t, raising exception Timeout.
val sleep : t -> unitsleep t sleeps for t's duration.
val pp : t Fmt.tpp formats a timeout as a duration (e.g. "5s"). This is intended for use in error messages and logging and is rounded.