package miou
Composable concurrency primitives for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
miou-0.3.1.tbz
sha256=2b7a2d52ec0599156b6e7c586190cc99dd964d840799763f6f2407bb83e39471
sha512=eba70cb4c5484ef4c5fce522b106d32f20482fe55a9252c82cf7b85d69cd1359d97a9d7279f39c05f3b2365d87cdfec39fbe2a0780167506d1eaeaf618227895
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)"
>