refactor: align method scope
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 11 Apr 2023 21:12:13 +0000 (23:12 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 11 Apr 2023 21:12:13 +0000 (23:12 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/cluster/fixed.ts
src/pools/thread/fixed.ts

index 81e7b3b7d08b4bb5624d993a15f7850d9d3bf2ba..faa68fc74ce96ece284bb953f53db02c47c154e9 100644 (file)
@@ -66,7 +66,7 @@ export class FixedClusterPool<
   }
 
   /** @inheritDoc */
-  public destroyWorker (worker: Worker): void {
+  protected destroyWorker (worker: Worker): void {
     this.sendToWorker(worker, { kill: 1 })
     worker.kill()
   }
index e7d3a727f1e2e7d0804815037c875db5e8963749..764d5851d9be4d6cd9c52b2333b1348c50c803bf 100644 (file)
@@ -51,7 +51,7 @@ export class FixedThreadPool<
   }
 
   /** @inheritDoc */
-  public async destroyWorker (
+  protected async destroyWorker (
     worker: ThreadWorkerWithMessageChannel
   ): Promise<void> {
     this.sendToWorker(worker, { kill: 1 })