Módulo worker_threads
módulo básico de traballador
Método de referencia:
1var worker_threads = require('worker_threads');
obxecto
Worker
Obxecto de traballo de fío independente, véxaseWorker
1Worker worker_threads.Worker;
propiedades estáticas
isMainThread
Booleano, consulta o actualWorkerÉ o fío condutor?
1static readonly Boolean worker_threads.isMainThread;
parentPort
Worker, consulta o actualWorkerfío pai
1static readonly Worker worker_threads.parentPort;
workerData
Valor, consulta o fío principalWorkerUn clon dos datos pasados ao fío polo construtor
1static readonly Value worker_threads.workerData;