package containers-thread
An extension of containers for threading
Install
Dune Dependency
Authors
Maintainers
Sources
v3.9.tar.gz
md5=c54431781906065ead3a089883f94726
sha512=8c954cb5ff01dc73a4e04ce2ef8fb5ad5162f16b2e4b2463501dd60c428d388c03c5b641c62b5876cd0d5ac5dc244d6a44d4d92a18525a03bdbf9cca82321272
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)"
>