- constructor(workerScript: string, maxElementsPerWorker = 1, workerStartOptions?: WorkerStartOptions, opts?: WorkerOptions) {
- super(workerScript, workerStartOptions);
- this.maxElementsPerWorker = maxElementsPerWorker;
- this.messageHandler = opts?.messageHandler ?? (() => { /* This is intentional */ });
+ constructor(workerScript: string, workerOptions?: WorkerOptions) {
+ super(workerScript, workerOptions);