Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-01-23 00:38:18 +0300
committerDaniel Bevenius <daniel.bevenius@gmail.com>2019-01-29 15:22:44 +0300
commit25e057e4f67a694d2bf0351126cfa2e4c46d0526 (patch)
treeb4a0356d7a0806644c88f04882a7ee078f6636ad /doc
parentc06653efdbee30cc3db5814af78ce2d824da2413 (diff)
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 dbf85f9edd5..840b831c903 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