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:
parent
c06653efdb
commit
25e057e4f6
@ -81,6 +81,7 @@ added: v10.5.0
|
|||||||
|
|
||||||
An integer identifier for the current thread. On the corresponding worker object
|
An integer identifier for the current thread. On the corresponding worker object
|
||||||
(if there is any), it is available as [`worker.threadId`][].
|
(if there is any), it is available as [`worker.threadId`][].
|
||||||
|
This value is unique for each [`Worker`][] instance inside a single process.
|
||||||
|
|
||||||
## worker.workerData
|
## worker.workerData
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
@ -453,6 +454,7 @@ added: v10.5.0
|
|||||||
|
|
||||||
An integer identifier for the referenced thread. Inside the worker thread,
|
An integer identifier for the referenced thread. Inside the worker thread,
|
||||||
it is available as [`require('worker_threads').threadId`][].
|
it is available as [`require('worker_threads').threadId`][].
|
||||||
|
This value is unique for each `Worker` instance inside a single process.
|
||||||
|
|
||||||
### worker.unref()
|
### worker.unref()
|
||||||
<!-- YAML
|
<!-- YAML
|
||||||
|
Loading…
x
Reference in New Issue
Block a user