feat: add task tunctions handling on the pool side
[poolifier.git] / src / worker / thread-worker.ts
index 8d30ef21a8874dcfb6802e2436a7d6033a4fa8ec..ede0b3b5602f6335e2fc0c3409a719fd5edbf5b6 100644 (file)
@@ -62,13 +62,13 @@ export class ThreadWorker<
         this.port.on('message', this.messageListener.bind(this))
         this.sendToMainWorker({
           ready: true,
-          taskFunctions: this.listTaskFunctions(),
+          taskFunctionNames: this.listTaskFunctionNames(),
           workerId: this.id
         })
       } catch {
         this.sendToMainWorker({
           ready: false,
-          taskFunctions: this.listTaskFunctions(),
+          taskFunctionNames: this.listTaskFunctionNames(),
           workerId: this.id
         })
       }