export type WorkerChoiceStrategy = keyof typeof WorkerChoiceStrategies
/**
- * Pool tasks usage statistics requirements.
+ * Pool worker tasks usage statistics requirements.
*/
export interface RequiredStatistics {
runTime: boolean
+ avgRunTime: boolean
}
/**
* Chooses a worker in the pool and returns its key.
*/
choose: () => number
+ /**
+ * Removes a worker reference from strategy internals.
+ *
+ * @param workerKey - The worker key.
+ */
+ remove: (workerKey: number) => boolean
}