package miou
Composable concurrency primitives for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
miou-0.4.0.tbz
sha256=d9ae52113d923f2425a1375c594f4accf61171780af1ef211dbbba38ff51dacf
sha512=f114d1d4b1ff0c7bbe74adbb2fa65a7343064a14ea252b8ae5dbd98c209b3c1d56f2e360422ea8e5cd2656a6f50cb10ae262b0c4e6681724803dd6e8eb1d1653
doc/miou.backoff/Miou_backoff/index.html
Module Miou_backoff
Source
Randomized exponential backoff mechanism.
Type of backoff values.
Logarithm of the maximum allowed value for wait.
create
creates a backoff value. upper_wait_log
, lower_wait_log
override the logarithmic upper and lower bound on the number of spins executed by once
.
once b
executes one random wait and returns a new backoff with logarithm of the current maximum value incremented unless it is already at upper_wait_log
of b
.
Note that this uses the default Stdlib Random
per-domain generator.
reset b
returns a backoff equivalent to b
except with current value set to the lower_wait_log
of b
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>