Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c56ddc7

Browse filesBrowse files
addaleaxtargos
authored andcommitted
doc: document uniqueness of worker.threadId
PR-URL: #25644 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent af6e439 commit c56ddc7
Copy full SHA for c56ddc7

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/worker_threads.md‎

Copy file name to clipboardExpand all lines: doc/api/worker_threads.md
+2Lines changed: 2 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ added: v10.5.0
8181

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

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

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

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.