Permalink
Browse files

doc: document uniqueness of worker.threadId

PR-URL: #25644
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
  • Loading branch information...
addaleax authored and targos committed Jan 22, 2019
1 parent af6e439 commit c56ddc7736f6981bc8a0d8428ad9e5cfcf3cfc54
Showing with 2 additions and 0 deletions.
  1. +2 −0 doc/api/worker_threads.md
@@ -81,6 +81,7 @@ added: v10.5.0

An integer identifier for the current thread. On the corresponding worker object
(if there is any), it is available as [`worker.threadId`][].
This value is unique for each [`Worker`][] instance inside a single process.

## worker.workerData
<!-- YAML
@@ -453,6 +454,7 @@ added: v10.5.0

An integer identifier for the referenced thread. Inside the worker thread,
it is available as [`require('worker_threads').threadId`][].
This value is unique for each `Worker` instance inside a single process.

### worker.unref()
<!-- YAML

0 comments on commit c56ddc7

Please sign in to comment.