interface
worker_threads.WorkerOptions
interface WorkerOptions
- argv?: any[]
List of arguments which would be stringified and appended to
process.argvin the worker. This is mostly similar to theworkerDatabut the values will be available on the globalprocess.argvas if they were passed as CLI options to the script. - name?: string
An optional
nameto be appended to the worker title for debugging/identification purposes, making the final title as[worker ${id}] ${name}.