package bonsai
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
A library for building dynamic webapps, using Js_of_ocaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
bonsai-v0.16.0.tar.gz
sha256=1d68aab713659951eba5b85f21d6f9382e0efa8579a02c3be65d9071c6e86303
doc/bonsai.extra/Bonsai_extra/One_at_a_time/index.html
Module Bonsai_extra.One_at_a_timeSource
Source
val effect :
('query -> 'response Bonsai.For_open.Effect.t) Bonsai.For_open.Value.t ->
(('query -> 'response Response.t Bonsai.For_open.Effect.t) * Status.t)
Bonsai.For_open.Computation.tTurns the input effect into an effect which ensures that only one instance of it is running at a time. If another instance of the effect is already running, then Busy is returned instead of running the effect. In addition, this computation also exposes whether or not an instance of the effect is in progress.
CAREFUL: If the effect function raises while it is executing, then the status will stay at busy, since the computation is unable to witness that the effect completed.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>