We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68380b6 commit a28c22bCopy full SHA for a28c22b
doc/api/worker_threads.md
@@ -1152,7 +1152,9 @@ added: REPLACEME
1152
1153
> Stability: 1 - Experimental
1154
1155
-If true, the `Worker` object will keep the Node.js event loop active.
+* Returns: {boolean}
1156
+
1157
+If `true`, the `Worker` object will keep the Node.js event loop active.
1158
1159
### `worker.ref()`
1160
test.js
@@ -0,0 +1 @@
1
+require('child_process').spawn('sleep', ['2'], ).unref();
0 commit comments