WorkerOptions

@native @JSType trait WorkerOptions extends StObject
Companion
object
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

var argv: UndefOr[Array[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.

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.

var env: UndefOr[Dict[String] | Symbol]
var eval: UndefOr[Boolean]
var execArgv: UndefOr[Array[String]]
var stderr: UndefOr[Boolean]
var stdin: UndefOr[Boolean]
var stdout: UndefOr[Boolean]
var trackUnmanagedFds: UndefOr[Boolean]
var transferList: UndefOr[Array[TransferListItem]]

Additional data to send in the first worker message.

Additional data to send in the first worker message.

var workerData: UndefOr[Any]