A string identifier for the referenced thread or null if the thread is not running. Inside the worker thread, it is available as require('node:worker_threads').threadName
.
property
worker_threads.Worker.threadName
readonly threadName: null | string