interface WorkerOptions
optional
argv: any[] | undefinedList of arguments which would be stringified and appended to
process.argv in the worker. This is mostly similar to the workerData
but the values will be available on the global process.argv as if they
were passed as CLI options to the script.
optional
eval: boolean | undefinedoptional
workerData: anyoptional
stdin: boolean | undefinedoptional
stdout: boolean | undefinedoptional
stderr: boolean | undefinedoptional
execArgv: string[] | undefinedoptional
resourceLimits: ResourceLimits | undefinedoptional
transferList: TransferListItem[] | undefinedAdditional data to send in the first worker message.
optional
trackUnmanagedFds: boolean | undefinedoptional
name: string | undefinedAn optional name to be appended to the worker title
for debuggin/identification purposes, making the final title as
[worker ${id}] ${name}.