diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index bbb35aa3ca5410..0db2e620f6f239 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -763,6 +763,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()`