package containers
A modular, clean and powerful extension of the OCaml standard library
Install
Dune Dependency
Authors
Maintainers
Sources
v2.8.tar.gz
md5=03b80e963186e91ddac62ef645bf7fb2
sha512=c8f434808be540c16926bf03d89f394d33fc2d092f963a7b6d412481229e0a96290f1ad7c7d522415115d35426b7aa0b3fda4b991ddc321dad279d402c9a0c0b
doc/containers.thread/CCTimer/index.html
Module CCTimer
Source
Event timer
Used to be part of CCFuture
.
A scheduler for events. It runs in its own thread.
set_exn_handler timer f
registers f
so that any exception raised by a task scheduled in timer
is given to f
.
Call the callback f
after the given number of seconds.
Create a future that evaluates to ()
at the given Unix timestamp.
every timer n ~f
calls f ()
every n
seconds. f()
can raise ExitEvery to stop the cycle.
Stop the given timer, cancelling pending tasks. Idempotent. From now on, calling most other operations on the timer will raise Stopped.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page