diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md index 3e8158470d432f..4a35f381c3067c 100644 --- a/doc/api/worker_threads.md +++ b/doc/api/worker_threads.md @@ -1144,6 +1144,16 @@ Send a message to the worker that is received via [`require('worker_threads').parentPort.on('message')`][]. See [`port.postMessage()`][] for more details. +### `worker.hasRef()` + + + +> Stability: 1 - Experimental + +If true, the `Worker` object will keep the Node.js event loop active. + ### `worker.ref()`