X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fpool.ts;h=cb7580898656ccd58a379edf24cdc55631301f34;hb=72ae84a2c9ccb043ce8b0ca2b83014d47a8120cb;hp=6156a0421170e6baa8ad7c2071b755da554a03ed;hpb=c172526cd82999efbace45402e0bd6d9ae173963;p=poolifier.git diff --git a/src/pools/pool.ts b/src/pools/pool.ts index 6156a042..cb758089 100644 --- a/src/pools/pool.ts +++ b/src/pools/pool.ts @@ -251,15 +251,15 @@ export interface IPool< */ readonly addTaskFunction: ( name: string, - taskFunction: TaskFunction - ) => boolean + taskFunction: TaskFunction + ) => 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. *