X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fworker.ts;h=4c877bc8b1dcc58871a55cd70c87871d918c4596;hb=ae036c3e73796126b7f1138129b6b18ef6bcef8c;hp=37d6308507669dd1f0ebcc295b790a1857c16a3e;hpb=037af3175d6121a6c08a631c992aa0d7fe853a9f;p=poolifier.git diff --git a/src/pools/worker.ts b/src/pools/worker.ts index 37d63085..4c877bc8 100644 --- a/src/pools/worker.ts +++ b/src/pools/worker.ts @@ -315,4 +315,11 @@ export interface IWorkerNode { * @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 }