Optional ReadonlydefaultDefault workers per pool. Defaults to the host's
availableParallelism().
Optional ReadonlyhostInjected worker host, taking precedence over the runtime's
IRuntimeServices.workers. Intended for tests and custom transports.
Optional ReadonlymaxDefault pending-queue bound per pool. Defaults to 1024.
Optional ReadonlymaxTotal live worker slots across all modules. Defaults to the largest of available parallelism, defaultPoolSize, and the sum of explicit pool sizes. Infinity disables the cap; otherwise a positive safe integer is required.
Optional ReadonlypoolsPer-task-module overrides, keyed by the specifier passed to run().
Optional ReadonlystartupHow long a spawned worker may take to signal ready before it is
terminated, its slot returned to the shared budget, and the oldest waiting
task for that module rejected with WorkerTaskError. Applies even when
taskTimeoutMs is 0. Defaults to 10 000; must be a positive integer no
greater than 2 147 483 647 (the largest delay a runtime timer honours —
a larger one would fire immediately). There is no way to disable it.
Optional ReadonlytaskDefault task timeout in milliseconds. Defaults to 30 000; 0 disables.
A worker whose task times out is terminated and replaced. Must be 0 or
a positive integer no greater than 2 147 483 647 (the largest delay a
runtime timer honours); NaN, negative, fractional and larger values
throw RangeError at construction instead of silently disabling the
timeout or firing it at once.
Options for
WorkerPoolPlugin.Since
0.1.0