WorkerOptions

sealed external interface WorkerOptions(source)

Properties

Link copied to clipboard
abstract var argv: ReadonlyArray<Any?>?

List 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.

Link copied to clipboard
abstract var env: Any?
Link copied to clipboard
abstract var eval: Boolean?
Link copied to clipboard
abstract var execArgv: ReadonlyArray<String>?
Link copied to clipboard
abstract var name: String?

An optional name to be appended to the worker title for debuggin/identification purposes, making the final title as [worker ${id}] ${name}.

Link copied to clipboard
Link copied to clipboard
abstract var stderr: Boolean?
Link copied to clipboard
abstract var stdin: Boolean?
Link copied to clipboard
abstract var stdout: Boolean?
Link copied to clipboard
abstract var trackUnmanagedFds: Boolean?
Link copied to clipboard

Additional data to send in the first worker message.

Link copied to clipboard
abstract var workerData: Any?