Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: document uniqueness of worker.threadId
  • Loading branch information
addaleax committed Jan 22, 2019
commit 36d1a4bef330e2461414f76e1a390b6180968307
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.
Comment thread
addaleax marked this conversation as resolved.

### worker.unref()
<!-- YAML
Expand Down