package lwt
Promises and event-driven I/O
Install
Dune Dependency
Authors
Maintainers
Sources
5.4.0.zip
md5=fc4721bdb1a01225b96e3a2debde95fa
sha512=e427f08223b77f9af696c9e6f90ff68e27e02e446910ef90d3da542e7b00bf23dd191ac77c1871288faa2289f8d28fc2f44efc3d3fe9165fe1c7a6be88ee49ff
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)"
>