package eio
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Effect-based direct-style IO API for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
eio-1.4.tbz
sha256=ba11ad486f492130dbb486f2b3bdc4905643f10016806ddf86e9a34e4346aaa5
sha512=57ef2c137ccdc26d8029e636b6a4ee92da7c6b2f35954946bd56ca595d6947a8ec42f6f83f8552f73d6719e6ce2314cae2e2fad1686a387522935e6f90e9a8d9
doc/eio/Eio/Time/index.html
Module Eio.TimeSource
Clocks, time, sleeping and timeouts.
now t is the current time since 00:00:00 GMT, Jan. 1, 1970 - in seconds - according to t.
sleep_until t time waits until the given time is reached.
Timeouts
Source
val with_timeout :
_ clock ->
float ->
(unit -> ('a, 'e) result) ->
('a, [> `Timeout ] as 'e) resultwith_timeout clock d fn runs fn () but cancels it after d seconds.
with_timeout_exn clock d fn runs fn () but cancels it after d seconds, raising exception Timeout.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page