Module basic module

Module worker_threads

Worker basic module

Reference method:

1
var worker_threads = require('worker_threads');

Object

Worker

Independent thread work object, see Worker

1
Worker worker_threads.Worker;

Static properties

isMainThread

Boolean, query current Worker Is it the main thread?

1
static readonly Boolean worker_threads.isMainThread;