Module Async_kernel__Async_gc.Alarm
A GC alarm calls a user function after the end of each major GC cycle.
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val create : (unit -> unit) -> t
create f
arranges forf
to be called after the end of each major GC cycle, starting with the current cycle or the next one.f
will be run in the monitor thatcreate
was called in.
val delete : t -> unit
delete t
will stop the calls to the function associated witht
. Callingdelete t
again has no effect.