Setu-TS
    Preparing search index...

    Function WorkerPoolPlugin

    • Creates the WorkerPoolPlugin.

      Registers an IWorkerPool under CAPABILITIES.WORKER_POOL. Single instance only (duplicate registration throws at startup via the resolver). On runtimes without worker threads (Cloudflare Workers) the plugin still registers; run() then throws WorkerPoolUnavailableError.

      Parameters

      Returns IPlugin

      The plugin instance

      import { WorkerPoolPlugin } from '@setu-ts/worker-pool-plugin';

      app.register(WorkerPoolPlugin({ taskTimeoutMs: 10_000 }));

      When maxWorkers is neither Infinity nor a positive safe integer

      0.1.0