Skip to content

Commit

Permalink
doc: document uniqueness of worker.threadId
Browse files Browse the repository at this point in the history
PR-URL: #25644
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
  • Loading branch information
addaleax authored and targos committed Jan 29, 2019
1 parent af6e439 commit c56ddc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/worker_threads.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c56ddc7

Please sign in to comment.