doc: document uniqueness of worker.threadId

PR-URL: https://github.com/nodejs/node/pull/25644
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
This commit is contained in:
Anna Henningsen 2019-01-22 22:38:18 +01:00 committed by Daniel Bevenius
parent c06653efdb
commit 25e057e4f6

View File

@ -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