Skip to content

Commit a28c22b

Browse files
committed
doc: add return type
Signed-off-by: Darshan Sen <[email protected]>
1 parent 68380b6 commit a28c22b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

doc/api/worker_threads.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,9 @@ added: REPLACEME
11521152

11531153
> Stability: 1 - Experimental
11541154
1155-
If true, the `Worker` object will keep the Node.js event loop active.
1155+
* Returns: {boolean}
1156+
1157+
If `true`, the `Worker` object will keep the Node.js event loop active.
11561158

11571159
### `worker.ref()`
11581160

test.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('child_process').spawn('sleep', ['2'], ).unref();

0 commit comments

Comments
 (0)