MhasRef
Bun

method

worker_threads.MessagePort.hasRef

hasRef(): boolean;

If true, the MessagePort object will keep the Node.js event loop active.