register

abstract fun register(obj: Any, cleanAction: () -> Unit): WasmSqliteCleaner.WasmSqliteCleanable

Registers an object and a cleaning action to run when the object becomes phantom reachable. Refer to the API Note for cautions about the behavior of cleaning actions.