docs: refine code comments
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 6 May 2023 20:43:46 +0000 (22:43 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 6 May 2023 20:43:46 +0000 (22:43 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.vscode/settings.json
src/pools/selection-strategies/selection-strategies-types.ts
src/pools/selection-strategies/worker-choice-strategy-context.ts

index e720aad139674ce8bb0b65803cad371a8f29f27e..010c3dc3be8920c42bf28fc4c72367fb08315c95 100644 (file)
@@ -9,6 +9,7 @@
     "Benoit",
     "caffeinate",
     "codeql",
+    "commitlint",
     "Dependabot",
     "FOSS",
     "Gitter",
     "lcov",
     "libuv",
     "loglevel",
-    "MYBENCH",
     "markdownlint",
     "microjob",
     "microtime",
     "mochawesome",
+    "MYBENCH",
     "nocombine",
-    "OPTARG",
     "octocat",
     "opencollective",
+    "OPTARG",
     "Parens",
     "piment",
+    "pioardi",
     "poolifier",
     "poolify",
+    "preinstall",
+    "Quadflieg",
     "serializable",
     "Shinigami",
     "sonarsource",
     "suchmokuo",
     "threadjs",
+    "THREADPOOL",
     "threadwork",
+    "trimmable",
     "tsdoc",
     "typedoc",
     "workerpool"
index 114ae8c555141fd08bff0103fcf79d62a65b5f83..b95cf7f3ae22b6338fcf48940415e23337307715 100644 (file)
@@ -83,7 +83,7 @@ export interface IWorkerChoiceStrategy {
    */
   reset: () => boolean
   /**
-   * Updates worker node strategy internals.
+   * Updates the worker node key strategy internals.
    *
    * @returns `true` if the update is successful, `false` otherwise.
    */
@@ -95,7 +95,7 @@ export interface IWorkerChoiceStrategy {
    */
   choose: () => number
   /**
-   * Removes a worker node key from strategy internals.
+   * Removes the worker node key from strategy internals.
    *
    * @param workerNodeKey - The worker node key.
    * @returns `true` if the worker node key is removed, `false` otherwise.
index e5fddc1b1fc5b400398b2e86bd0ac3b3fd6f97c9..2b3c9fb68b33b1d4925f9dab7be3cf14b123bf88 100644 (file)
@@ -115,7 +115,7 @@ export class WorkerChoiceStrategyContext<
   }
 
   /**
-   * Updates the worker choice strategy internals in the context.
+   * Updates the worker node key in the worker choice strategy internals in the context.
    *
    * @returns `true` if the update is successful, `false` otherwise.
    */
@@ -141,7 +141,7 @@ export class WorkerChoiceStrategyContext<
   }
 
   /**
-   * Removes a worker node key from the worker choice strategy in the context.
+   * Removes the worker node key from the worker choice strategy in the context.
    *
    * @param workerNodeKey - The key of the worker node.
    * @returns `true` if the removal is successful, `false` otherwise.