Setu-TS
    Preparing search index...

    Interface WorkerPoolPluginOptions

    Options for WorkerPoolPlugin.

    0.1.0

    interface WorkerPoolPluginOptions {
        defaultPoolSize?: number;
        host?: IWorkerHost;
        maxQueue?: number;
        maxWorkers?: number;
        pools?: Readonly<Record<string, TaskPoolOptions>>;
        startupTimeoutMs?: number;
        taskTimeoutMs?: number;
    }
    Index
    defaultPoolSize?: number

    Default workers per pool. Defaults to the host's availableParallelism().

    Injected worker host, taking precedence over the runtime's IRuntimeServices.workers. Intended for tests and custom transports.

    maxQueue?: number

    Default pending-queue bound per pool. Defaults to 1024.

    maxWorkers?: number

    Total 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.

    0.9.0

    pools?: Readonly<Record<string, TaskPoolOptions>>

    Per-task-module overrides, keyed by the specifier passed to run().

    startupTimeoutMs?: number

    How 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.

    0.9.0

    taskTimeoutMs?: number

    Default 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.