worker.threadId


当前线程的整数标识符。在对应的工作线程对象上(如果有的话),可以作为 worker.threadId 使用。此值对于单个进程中的每个 Worker 实例都是唯一的。

¥An integer identifier for the current thread. On the corresponding worker object (if there is any), it is available as worker.threadId. This value is unique for each Worker instance inside a single process.