Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
if (this.opts.enableEvents === true) {
this.emitter = new PoolEmitter()
}
- this.workerChoiceStrategyContext = new WorkerChoiceStrategyContext(
+ this.workerChoiceStrategyContext = new WorkerChoiceStrategyContext<
+ Worker,
+ Data,
+ Response
+ >(
this,
() => {
const createdWorker = this.createAndSetupWorker()
workerChoiceStrategy: WorkerChoiceStrategy
): void {
this.workerChoiceStrategy?.reset()
- this.workerChoiceStrategy = getWorkerChoiceStrategy(
+ this.workerChoiceStrategy = getWorkerChoiceStrategy<Worker, Data, Response>(
this.pool,
workerChoiceStrategy
)