package miou
Composable concurrency primitives for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
miou-0.4.0.tbz
sha256=d9ae52113d923f2425a1375c594f4accf61171780af1ef211dbbba38ff51dacf
sha512=f114d1d4b1ff0c7bbe74adbb2fa65a7343064a14ea252b8ae5dbd98c209b3c1d56f2e360422ea8e5cd2656a6f50cb10ae262b0c4e6681724803dd6e8eb1d1653
doc/src/miou/miou_gen.ml.html
Source file miou_gen.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
module Make () = struct type t = int let null = 0 let pp = Format.pp_print_int let compare a b = a - b let equal = Int.equal external of_int : int -> t = "%identity" external to_int : t -> int = "%identity" let gen, reset = let value = Atomic.make (succ null) in let gen () = Atomic.fetch_and_add value 1 in let reset () = Atomic.set value (succ null) in (gen, reset) end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>