summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-01-22 22:38:18 +0100
committerDaniel Bevenius <daniel.bevenius@gmail.com>2019-01-29 13:22:44 +0100
commit25e057e4f67a694d2bf0351126cfa2e4c46d0526 (patch)
treeb4a0356d7a0806644c88f04882a7ee078f6636ad /doc
parentc06653efdbee30cc3db5814af78ce2d824da2413 (diff)
downloadandroid-node-v8-25e057e4f67a694d2bf0351126cfa2e4c46d0526.tar.gz
android-node-v8-25e057e4f67a694d2bf0351126cfa2e4c46d0526.tar.bz2
android-node-v8-25e057e4f67a694d2bf0351126cfa2e4c46d0526.zip
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>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/worker_threads.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md
index dbf85f9edd..840b831c90 100644
--- a/doc/api/worker_threads.md
+++ b/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