Version dev
This is a preliminary version of the documentation. Help us to improve it by filling tickets. We are looking for native english speakers to proof read the documentation. Contact us!
module Lwt_gc:Interaction with the garbage collectorsig..end
Lwt_unix.run in the finaliser.val finalise : ('a -> unit Lwt.t) -> 'a -> unitfinalise f x calls f x when x is garbage collected. If f x yields, then Lwt will waits for its termination at the end of the program.val finalise_or_exit : ('a -> unit Lwt.t) -> 'a -> unitfinalise_or_exit f x call f x when x is garbage collected or (exclusively) when the program exit.