interface WorkerOptions
Properties Jump to heading
optional
Jump to headingargv: 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
Jump to headingenv: optional
Jump to headingeval: boolean | undefinedoptional
Jump to headingworkerData: anyoptional
Jump to headingstdin: boolean | undefinedoptional
Jump to headingstdout: boolean | undefinedoptional
Jump to headingstderr: boolean | undefinedoptional
Jump to headingexecArgv: string[] | undefinedoptional
Jump to headingresourceLimits: ResourceLimits | undefinedoptional
Jump to headingtransferList: TransferListItem[] | undefinedAdditional data to send in the first worker message.
optional
Jump to headingtrackUnmanagedFds: boolean | undefinedoptional
Jump to headingname: string | undefinedAn optional name to be appended to the worker title
for debuggin/identification purposes, making the final title as
[worker ${id}] ${name}.