/**
* Task function names.
*/
- taskFunctions?: string[]
+ taskFunctionNames?: string[]
}
/**
}
/**
- * Worker strategy data.
+ * Worker choice strategy data.
+ *
+ * @internal
*/
export interface StrategyData {
virtualTaskEndTimestamp?: number
*/
readonly usage: WorkerUsage
/**
- * Worker strategy data.
+ * Worker choice strategy data.
* This is used to store data that is specific to the worker choice strategy.
*/
strategyData?: StrategyData
* @returns The task function worker usage statistics if the task function worker usage statistics are initialized, `undefined` otherwise.
*/
readonly getTaskFunctionWorkerUsage: (name: string) => WorkerUsage | undefined
+ /**
+ * Deletes task function worker usage statistics.
+ *
+ * @param name - The task function name.
+ * @returns `true` if the task function worker usage statistics were deleted, `false` otherwise.
+ */
+ readonly deleteTaskFunctionWorkerUsage: (name: string) => boolean
}