refactor: cleanup variables namespace
[poolifier.git] / src / worker / abstract-worker.ts
index 1c1ff3d7700d72e11ad02d48b4e283282241833a..93a36bad382fe5781f35d73b71a8169510b818ac 100644 (file)
@@ -271,7 +271,7 @@ export abstract class AbstractWorker<
   /**
    * Worker message listener.
    *
-   * @param message - Message received.
+   * @param message - The received message.
    */
   protected messageListener (message: MessageValue<Data, Data>): void {
     if (message.workerId === this.id) {
@@ -303,7 +303,7 @@ export abstract class AbstractWorker<
   }
 
   /**
-   * Starts the worker alive check interval.
+   * Starts the worker aliveness check interval.
    */
   private startCheckAlive (): void {
     this.lastTaskTimestamp = performance.now()
@@ -315,7 +315,7 @@ export abstract class AbstractWorker<
   }
 
   /**
-   * Stops the worker alive check interval.
+   * Stops the worker aliveness check interval.
    */
   private stopCheckAlive (): void {
     this.aliveInterval != null && clearInterval(this.aliveInterval)
@@ -380,7 +380,7 @@ export abstract class AbstractWorker<
   }
 
   /**
-   * Runs the given function synchronously.
+   * Runs the given task function synchronously.
    *
    * @param fn - Task function that will be executed.
    * @param task - Input data for the task function.
@@ -418,7 +418,7 @@ export abstract class AbstractWorker<
   }
 
   /**
-   * Runs the given function asynchronously.
+   * Runs the given task function asynchronously.
    *
    * @param fn - Task function that will be executed.
    * @param task - Input data for the task function.