- constructor(workerScript: string, maxElementsPerWorker = 1, workerStartDelay?: number, messageListenerCallback: (message: any) => void = () => { /* This is intentional */ }) {
- super(workerScript, workerStartDelay, messageListenerCallback);
- this.workerSet = new Set<WorkerSetElement>();
+ constructor(workerScript: string, maxElementsPerWorker = 1, workerStartDelay?: number, opts?: WorkerOptions) {
+ super(workerScript, workerStartDelay);