- /**
- * Number of workers that this pool should manage.
- *
- * @returns Number of workers that this pool manages.
- * @deprecated Only here for backward compatibility.
- */
- // eslint-disable-next-line spellcheck/spell-checker
- public get numWorkers (): number {
- return this.numberOfWorkers
+ private checkFilePath (filePath: string) {
+ if (!filePath) {
+ throw new Error('Please specify a file with a worker implementation')
+ }