Module default

Source
Expand description

The default garbage collector.

For each thread, a participant is lazily initialized on its first use, when the current thread is registered in the default collector. If initialized, the thread’s participant will get destructed on thread exit, which in turn unregisters the thread.

Constants§

HANDLE 🔒
The per-thread participant for the default garbage collector.

Functions§

collector 🔒
default_collector
Returns the default global collector.
is_pinned
Returns true if the current thread is pinned.
pin
Pins the current thread.
with_handle 🔒