Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
exitHandler?: ExitHandler<Worker>
/**
* The worker choice strategy to use in this pool.
+ *
+ * @defaultValue 'ROUND_ROBIN'
*/
workerChoiceStrategy?: WorkerChoiceStrategy
/**
export interface WorkerChoiceStrategyOptions {
/**
* Use tasks median run time instead of average run time.
+ *
+ * @defaultValue false
*/
medRunTime?: boolean
}
*/
export interface Task<Data = unknown> {
/**
- * Input data that will be passed to the worker.
+ * Task input data that will be passed to the worker.
*/
readonly data?: Data
/**