Skip to content
This repository was archived by the owner on May 29, 2023. It is now read-only.

Commit ac1a2d2

Browse files
committed
chore: rename terminate -> terminateWorker
1 parent 49dcbd3 commit ac1a2d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/workers/src/worker/pipes/worker.pipe.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class WorkerPipe implements PipeTransform, OnDestroy {
1414

1515
transform<T, R>(value: T, fn: WorkerFunction<T, R>): Observable<R> {
1616
if (this.fn !== fn) {
17-
this.terminate();
17+
this.terminateWorker();
1818
this.initNewWorker(fn);
1919
}
2020

@@ -24,10 +24,10 @@ export class WorkerPipe implements PipeTransform, OnDestroy {
2424
}
2525

2626
ngOnDestroy(): void {
27-
this.terminate();
27+
this.terminateWorker();
2828
}
2929

30-
private terminate() {
30+
private terminateWorker() {
3131
if (this.worker) {
3232
this.worker.terminate();
3333
}

0 commit comments

Comments
 (0)