On this page

    P

    worker_threads.threadName

    History
    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.