browser-image
    Preparing search index...

    Interface WorkerConfig

    Settings for configureWorkers.

    interface WorkerConfig {
        maxWorkers?: number;
        minStripPixels?: number;
        startupTimeout?: number;
        createWorker?: () => WorkerLike;
    }

    Hierarchy

    • WorkerConfig<WorkerRequest, WorkerResponse>
      • WorkerConfig
    Index
    maxWorkers?: number

    Most workers to run at once. Default navigator.hardwareConcurrency (4 if unknown).

    minStripPixels?: number

    Smallest strip, in pixels, worth sending to its own worker. Default 262144 (512x512).

    startupTimeout?: number

    How long a new worker may take to start before the pool gives up on it, in ms. Default 10000.

    createWorker?: () => WorkerLike

    Creates a worker. Override to serve the worker script from a custom URL.