OptionalsizeNumber of worker threads. Default: Math.max(1, cpus / 2).
OptionalworkerPath to the worker script. Default: built-in generic executor.
OptionalmaxTasks that may wait for a worker; further tasks are rejected with WorkerPoolBusyError. Default: unbounded.
OptionaltaskMilliseconds a task may run before it is rejected with WorkerTaskTimeoutError and its worker replaced. The clock starts once the worker is running, so a fresh worker's start-up does not count. Default: none.
OptionalresourceResource limits for each worker thread (heap sizes, stack size).
Configuration options for the worker thread pool.