docs: comment worker callback issue on windows
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 20 Sep 2023 17:31:28 +0000 (19:31 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 20 Sep 2023 17:31:28 +0000 (19:31 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
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))
     }
   }