Uniformize some comments
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 10 Oct 2022 19:28:28 +0000 (21:28 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 10 Oct 2022 19:28:28 +0000 (21:28 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/abstract-pool.ts
src/pools/pool-internal.ts
src/pools/selection-strategies/weighted-round-robin-worker-choice-strategy.ts
src/utility-types.ts

index 304dfba51151d5d7508ce40deabe9b1a28441d2f..ab6c094094a29da154b6321e80d0567f675ff802 100644 (file)
@@ -443,10 +443,10 @@ export abstract class AbstractPool<
   }
 
   /**
-   * Updates tasks run time for the given worker.
+   * Updates tasks runtime for the given worker.
    *
    * @param worker Worker which run the task.
-   * @param taskRunTime Worker task run time.
+   * @param taskRunTime Worker task runtime.
    */
   private updateWorkerTasksRunTime (
     worker: Worker,
index f5f1d1908a14d60f2e26f9d6baa75c627468e96b..2cf84adbc6bfd28e9d552795cbb3b49bbe8ffee4 100644 (file)
@@ -103,10 +103,10 @@ export interface IPoolInternal<
   getWorkerRunningTasks(worker: Worker): number | undefined
 
   /**
-   * Get worker average tasks run time.
+   * Get worker average tasks runtime.
    *
    * @param worker The worker.
-   * @returns The average tasks run time on the worker.
+   * @returns The average tasks runtime on the worker.
    */
   getWorkerAverageTasksRunTime(worker: Worker): number | undefined
 }
index 19c81f991bf3fa13a24688fe7c6bc04ab94a11a5..e05b6fae22a9e35ddb702165c779e7e3ae319635 100644 (file)
@@ -5,7 +5,7 @@ import { AbstractWorkerChoiceStrategy } from './abstract-worker-choice-strategy'
 import type { RequiredStatistics } from './selection-strategies-types'
 
 /**
- * Virtual task run time.
+ * Virtual task runtime.
  */
 type TaskRunTime = {
   weight: number
index 104725ac4299ec9827e81c52d9e7b09dc3105d96..926b3280b2f85e4378031cee08b59ce0fee65c98 100644 (file)
@@ -32,7 +32,7 @@ export interface MessageValue<
    */
   readonly error?: string
   /**
-   * Task run time.
+   * Task runtime.
    */
   readonly taskRunTime?: number
   /**