worker_threads.threadName


当前线程的字符串标识符,如果线程未运行则为 null。在相应的 worker 对象上(如果有的话),它可作为 worker.threadName 使用。

【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.】