Options for WorkerPoolPlugin.
readonly
optional
defaultPoolSize: number
Default workers per pool. Defaults to the host's
availableParallelism().
readonly
optional
maxQueue: number
Default pending-queue bound per pool. Defaults to 1024.
readonly
optional
taskTimeoutMs: number
Default task timeout in milliseconds. Defaults to 30 000; 0 disables.
A worker whose task times out is terminated and replaced.
readonly
optional
pools: Readonly<Record<string, TaskPoolOptions>>
Per-task-module overrides, keyed by the specifier passed to run().
readonly
optional
host: IWorkerHost
Injected worker host, taking precedence over the runtime's
IRuntimeServices.workers. Intended for tests and custom transports.