package lwt
Promises and event-driven I/O
Install
Dune Dependency
Authors
Maintainers
Sources
5.7.0.tar.gz
md5=737039d29d45b2d2b35db6931c8d75c6
sha512=42e629920783428673b99c9d7a639237c9e6b35079b5d907bc67e7ea506acf9edadc48cec580bdcfd2410ed9412bf5e6bcc8b09de2fa7d35ce1490973d05ddd1
doc/lwt.unix/Lwt_gc/index.html
Module Lwt_gc
Source
Interaction with the garbage collector
This module offers a convenient way to add a finaliser launching a thread to a value, without having to use Lwt_unix.run
in the finaliser.
finalise f x
ensures f x
is evaluated after x
has been garbage collected. If f x
yields, then Lwt will wait for its termination at the end of the program.
Note that f x
is not called at garbage collection time, but later in the main loop.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>