From ac1a2d20c1e7a0bee4a25d073bf9fdd0cbba9779 Mon Sep 17 00:00:00 2001 From: IKatsuba Date: Thu, 26 Nov 2020 10:01:01 +0300 Subject: [PATCH] chore: rename terminate -> terminateWorker --- projects/workers/src/worker/pipes/worker.pipe.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/workers/src/worker/pipes/worker.pipe.ts b/projects/workers/src/worker/pipes/worker.pipe.ts index 112cea9..36a9fd7 100644 --- a/projects/workers/src/worker/pipes/worker.pipe.ts +++ b/projects/workers/src/worker/pipes/worker.pipe.ts @@ -14,7 +14,7 @@ export class WorkerPipe implements PipeTransform, OnDestroy { transform(value: T, fn: WorkerFunction): Observable { if (this.fn !== fn) { - this.terminate(); + this.terminateWorker(); this.initNewWorker(fn); } @@ -24,10 +24,10 @@ export class WorkerPipe implements PipeTransform, OnDestroy { } ngOnDestroy(): void { - this.terminate(); + this.terminateWorker(); } - private terminate() { + private terminateWorker() { if (this.worker) { this.worker.terminate(); }