MunrefCallback
Bun

method

ffi.DynamicLibrary.unrefCallback

pointer: bigint
): void;

Allows the callback to become weakly referenced by JavaScript.

If the callback function is later garbage collected, subsequent native invocations become a no-op. Non-void return values are zero-initialized before returning to native code.