Module Sys.Switch

A module used by EIO to handle cleanup tasks; unit for other platforms.

type t
type hook
val run : (t -> 'a Fiber.t) -> 'a Fiber.t
val check : t -> unit
val on_release_cancellable : t -> (unit -> unit Fiber.t) -> hook
val remove_hook : hook -> unit