Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
protected readonly pool: IPool<Worker, Data, Response>,
protected opts?: WorkerChoiceStrategyOptions
) {
protected readonly pool: IPool<Worker, Data, Response>,
protected opts?: WorkerChoiceStrategyOptions
) {
- this.opts = buildWorkerChoiceStrategyOptions<Worker, Data, Response>(
- this.pool,
- this.opts
- )
- this.setTaskStatisticsRequirements(this.opts)
+ this.setOptions(this.opts)
this.choose = this.choose.bind(this)
}
this.choose = this.choose.bind(this)
}