Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
class LeastEluWorkerChoiceStrategy
import { LeastEluWorkerChoiceStrategy } from "https://deno.land/x/poolifier@v0.3.14/src/pools/selection-strategies/least-elu-worker-choice-strategy.ts";

Selects the worker with the least ELU.

Constructors

new
LeastEluWorkerChoiceStrategy(pool: IPool<Worker, Data, Response>, opts?: WorkerChoiceStrategyOptions)

Type Parameters

Worker extends IWorker
optional
Data = unknown
optional
Response = unknown

Properties

readonly
taskStatisticsRequirements: TaskStatisticsRequirements

Methods

private
leastEluNextWorkerNodeKey(): number | undefined
choose(): number | undefined
remove(): boolean
reset(): boolean
update(): boolean