package bonsai

  1. Overview
  2. Docs
A library for building dynamic webapps, using Js_of_ocaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=c78c4476ee6b856846e2d0941e5965009d5e1b853e564b2b1bee61202f0b1ebb

doc/bonsai.extra/Bonsai_extra/One_at_a_time/index.html

Module Bonsai_extra.One_at_a_timeSource

Sourcemodule Status : sig ... end
Sourcemodule Response : sig ... end

Turns 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.