Interface SandboxedOptions

interface SandboxedOptions {
    useWorkerThreads?: boolean;
    workerForkOptions?: ForkOptions;
    workerThreadsOptions?: WorkerOptions;
}

Hierarchy (view full)

Properties

useWorkerThreads?: boolean

Use Worker Threads instead of Child Processes. Note: This option can only be used when specifying a file for the processor argument.

Default

false
workerForkOptions?: ForkOptions

Support passing Worker Fork Options. Note: This option can only be used when specifying a file for the processor argument and useWorkerThreads is passed as false (default value).

workerThreadsOptions?: WorkerOptions

Support passing Worker Threads Options. Note: This option can only be used when specifying a file for the processor argument and useWorkerThreads is passed as true.

Generated using TypeDoc