Variable withWebWorkers

withWebWorkers: ((nWorkers?: number, WorkerConstructor?: (new (scriptURL: string | URL, options?: WorkerOptions) => Worker), publicPath?: string) => void)

Type declaration

    • (nWorkers?: number, WorkerConstructor?: (new (scriptURL: string | URL, options?: WorkerOptions) => Worker), publicPath?: string): void
    • Parameters

      • nWorkers: number = 8
      • WorkerConstructor: (new (scriptURL: string | URL, options?: WorkerOptions) => Worker) = window.Worker
          • new (scriptURL: string | URL, options?: WorkerOptions): Worker
          • Parameters

            • scriptURL: string | URL
            • Optional options: WorkerOptions

            Returns Worker

      • publicPath: string = window.location.href

      Returns void

Generated using TypeDoc