X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fselection-strategies%2Fdynamic-pool-worker-choice-strategy.ts;h=5f07d60794b07e9c4eb9846f4d9ea9d1847a1caa;hb=7e060ceea2e476067edc0a19a02fdfd35df7bb8a;hp=6f73129e1ca9149dc6c21690b7e6c53b296e08af;hpb=78cea37e264d5ca527bc42eb056f3b9579a2b2c4;p=poolifier.git diff --git a/src/pools/selection-strategies/dynamic-pool-worker-choice-strategy.ts b/src/pools/selection-strategies/dynamic-pool-worker-choice-strategy.ts index 6f73129e..5f07d607 100644 --- a/src/pools/selection-strategies/dynamic-pool-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/dynamic-pool-worker-choice-strategy.ts @@ -11,9 +11,9 @@ import { getWorkerChoiceStrategy } from './selection-strategies-utils' /** * Selects the next worker for dynamic pool. * - * @template Worker Type of worker which manages the strategy. - * @template Data Type of data sent to the worker. This can only be serializable data. - * @template Response Type of response of execution. This can only be serializable data. + * @typeParam Worker - Type of worker which manages the strategy. + * @typeParam Data - Type of data sent to the worker. This can only be serializable data. + * @typeParam Response - Type of response of execution. This can only be serializable data. */ export class DynamicPoolWorkerChoiceStrategy< Worker extends IPoolWorker, @@ -25,9 +25,9 @@ export class DynamicPoolWorkerChoiceStrategy< /** * Constructs a worker choice strategy for dynamic pool. * - * @param pool The pool instance. - * @param createDynamicallyWorkerCallback The worker creation callback for dynamic pool. - * @param workerChoiceStrategy The worker choice strategy when the pull is busy. + * @param pool - The pool instance. + * @param createDynamicallyWorkerCallback - The worker creation callback for dynamic pool. + * @param workerChoiceStrategy - The worker choice strategy when the pull is busy. */ public constructor ( pool: IPoolInternal, @@ -42,12 +42,12 @@ export class DynamicPoolWorkerChoiceStrategy< this.requiredStatistics = this.workerChoiceStrategy.requiredStatistics } - /** @inheritDoc */ + /** {@inheritDoc} */ public reset (): boolean { return this.workerChoiceStrategy.reset() } - /** @inheritDoc */ + /** {@inheritDoc} */ public choose (): Worker { const freeWorker = this.pool.findFreeWorker() if (freeWorker !== false) {