package bonsai
A library for building dynamic webapps, using Js_of_ocaml
Install
Dune Dependency
Authors
Maintainers
Sources
v0.15.1.tar.gz
sha256=0c4a714146073f421f1a6179561f836b45d8dc012c743207d3481ea63bef74bf
doc/bonsai/Bonsai/Clock/index.html
Module Bonsai.Clock
Source
Functions allowing for the creation of time-dependent computations in a testable way.
The current time, updated at tick_every
intervals.
The current time, update as frequently as possible.
Mirrors Incr.Clock.at
, which changes from Before
to After
at the specified time.
Source
val every :
Core.Source_code_position.t ->
Core.Time_ns.Span.t ->
unit Effect.t Value.t ->
unit Computation.t
An event passed to every
is scheduled on an interval determined by the time-span argument.
An effect for fetching the current time.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>