X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fpool.ts;h=a19b70a387665bf13d8c7f796390928da52ed0d8;hb=e81c38f2f8046e9a482e94040b8f6d31dcda160c;hp=6156a0421170e6baa8ad7c2071b755da554a03ed;hpb=aed302d456407817a368e3f743020474b60facd2;p=poolifier.git diff --git a/src/pools/pool.ts b/src/pools/pool.ts index 6156a042..a19b70a3 100644 --- a/src/pools/pool.ts +++ b/src/pools/pool.ts @@ -252,14 +252,14 @@ export interface IPool< readonly addTaskFunction: ( name: string, taskFunction: TaskFunction - ) => boolean + ) => Promise /** * Removes a task function from this pool. * * @param name - The name of the task function. * @returns `true` if the task function was removed, `false` otherwise. */ - readonly removeTaskFunction: (name: string) => boolean + readonly removeTaskFunction: (name: string) => Promise /** * Lists the names of task function available in this pool. * @@ -272,7 +272,7 @@ export interface IPool< * @param name - The name of the task function. * @returns `true` if the default task function was set, `false` otherwise. */ - readonly setDefaultTaskFunction: (name: string) => boolean + readonly setDefaultTaskFunction: (name: string) => Promise /** * Sets the worker choice strategy in this pool. *