package devkit
Development kit - general purpose library
Install
Dune Dependency
Authors
Maintainers
Sources
1.2.tar.gz
sha256=28f4c68127579b86c5f50e01e444e8c51f0543bc5472c2dcac28993bc88aa756
md5=0317493fa5cc1054a882ceca59ce5992
doc/src/devkit.core/lwt_flag.ml.html
Source file lwt_flag.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
module C = Lwt_condition type 'a t = { cond : 'a C.t; mutable waiter : 'a Lwt.t } let create () = let cond = C.create () in { cond; waiter = C.wait cond } let signal { cond; _ } x = C.signal cond x let wait fl = let%lwt r = fl.waiter in fl.waiter <- C.wait fl.cond; Lwt.return r
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>