@@ -721,6 +721,17 @@ An integer identifier for the current thread. On the corresponding worker object
721721(if there is any), it is available as [`worker.threadId`][].
722722This value is unique for each [`Worker`][] instance inside a single process.
723723
724+ ## `worker.threadName`
725+
726+ <!-- YAML
727+ added: REPLACEME
728+ -->
729+
730+ * {string|null}
731+
732+ A string identifier for the current thread or null if the thread is not running.
733+ On the corresponding worker object (if there is any), it is available as [`worker.threadName`][].
734+
724735## `worker.workerData`
725736
726737<!-- YAML
@@ -2011,6 +2022,17 @@ An integer identifier for the referenced thread. Inside the worker thread,
20112022it is available as [` require('node:worker_threads').threadId` ][].
20122023This value is unique for each ` Worker` instance inside a single process .
20132024
2025+ ### ` worker.threadName`
2026+
2027+ <!-- YAML
2028+ added: REPLACEME
2029+ -->
2030+
2031+ * {string| null }
2032+
2033+ A string identifier for the referenced thread or null if the thread is not running.
2034+ Inside the worker thread, it is available as [` require('node:worker_threads').threadName` ][].
2035+
20142036### ` worker.unref()`
20152037
20162038<!-- YAML
@@ -2139,6 +2161,7 @@ thread spawned will spawn another until the application crashes.
21392161[` require('node:worker_threads').parentPort.postMessage()` ]: #workerpostmessagevalue- transferlist
21402162[` require('node:worker_threads').parentPort` ]: #workerparentport
21412163[` require('node:worker_threads').threadId` ]: #workerthreadid
2164+ [` require('node:worker_threads').threadName` ]: #workerthreadname
21422165[` require('node:worker_threads').workerData` ]: #workerworkerdata
21432166[` trace_events` ]: tracing .md
21442167[` v8.getHeapSnapshot()` ]: v8 .md #v8getheapsnapshotoptions
@@ -2149,6 +2172,7 @@ thread spawned will spawn another until the application crashes.
21492172[` worker.postMessage()` ]: #workerpostmessagevalue- transferlist
21502173[` worker.terminate()` ]: #workerterminate
21512174[` worker.threadId` ]: #workerthreadid_1
2175+ [` worker.threadName` ]: #workerthreadname_1
21522176[async - resource- worker- pool]: async_context .md #using- asyncresource- for - a- worker- thread- pool
21532177[browser ` LockManager` ]: https: // developer.mozilla.org/en-US/docs/Web/API/LockManager
21542178[browser ` MessagePort` ]: https: // developer.mozilla.org/en-US/docs/Web/API/MessagePort
0 commit comments