P
worker_threads.threadName
History
Added in: v24.6.0, v22.20.0
v24.6.0, v22.20.0
Introduced in: v10.5.0
v10.5.0
Attributes
A string identifier for the current thread or null if the thread is not running.
On the corresponding worker object (if there is any), it is available as worker.threadName.