diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 0fa741c6ed5325..0770edd28f3e41 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -757,6 +757,18 @@ port2.postMessage(new URL('https://example.org')); // Prints: { } ``` +### `port.hasRef()` + + + +> Stability: 1 - Experimental + +* Returns: {boolean} + +If true, the `MessagePort` object will keep the Node.js event loop active. + ### `port.ref()`