Skip to content

Commit

Permalink
doc: add return type
Browse files Browse the repository at this point in the history
Signed-off-by: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
RaisinTen committed Apr 16, 2022
1 parent 68380b6 commit a28c22b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/api/worker_threads.md
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,9 @@ added: REPLACEME

> Stability: 1 - Experimental
If true, the `Worker` object will keep the Node.js event loop active.
* Returns: {boolean}

If `true`, the `Worker` object will keep the Node.js event loop active.

### `worker.ref()`

Expand Down
1 change: 1 addition & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('child_process').spawn('sleep', ['2'], ).unref();

0 comments on commit a28c22b

Please sign in to comment.