unregister

abstract fun unregister(ref: Any)(source)

This function remove the register of the object from the finalization registry, so the callback will not be called anymore.

Since

v22.5.0

Parameters

ref

The reference to the resource that was registered previously.