refactor: use delete on properties
[poolifier.git] / src / worker / abstract-worker.ts
index 311a56ad60e00684835e89ef0507d60f0c9d4432..22e65bad63d213aa6b1bda6f0adc6a2a76401873 100644 (file)
@@ -100,6 +100,7 @@ export abstract class AbstractWorker<
     this.checkTaskFunctions(taskFunctions)
     this.checkWorkerOptions(this.opts)
     if (!this.isMain) {
+      // Should be once() but Node.js on windows has a bug that prevents it from working
       this.getMainWorker().on('message', this.handleReadyMessage.bind(this))
     }
   }