+ protected readonly pool: IPoolInternal<Worker, Data, Response>,
+ protected readonly opts: WorkerChoiceStrategyOptions = { medRunTime: false }
+ ) {
+ this.checkOptions()
+ this.isDynamicPool = this.pool.type === PoolType.DYNAMIC
+ this.choose.bind(this)
+ }
+
+ private checkOptions (): void {
+ if (this.requiredStatistics.avgRunTime && this.opts.medRunTime === true) {
+ this.requiredStatistics.medRunTime = true
+ }
+ }