1 import { WorkerData
} from
'../types/Worker';
3 export default abstract class Wrk
{
4 protected workerScript
: string;
5 public abstract size
: number;
6 public abstract maxElementsPerWorker
: number;
11 * @param {string} workerScript
13 constructor(workerScript
: string) {
14 this.workerScript
= workerScript
;
17 public abstract start(): Promise
<void>;
18 public abstract addElement(elementData
: WorkerData
): Promise
<void>;