package async_js

  1. Overview
  2. Docs

Module Bonsai_test_handle_garbage_collectorSource

This module is intended to be used for garbage collecting bonsai test handles during tests. This library need to be its own standalone library so that it can be used by different expect test configs (Bonsai_web_test.Expect_test_config) and (Async_js_test.Expect_test_config).

Sourceval register_cleanup : (unit -> unit) -> unit

Enqueues a thunk to be run the next time that garbage_collect runs.

Sourceval garbage_collect : unit -> unit

Pops all thunks from the queue.

OCaml

Innovation. Community. Security.