feat: sync task function names in pool
[poolifier.git] / src / pools / pool.ts
index 1a05f633250adb8e88c72a63cda565c3265205bc..0bde23befc95521132d619c5d2299008bf9ddd81 100644 (file)
@@ -207,6 +207,12 @@ export interface IPool<
    * Terminates all workers in this pool.
    */
   readonly destroy: () => Promise<void>
+  /**
+   * Lists the names of task function available in this pool.
+   *
+   * @returns The names of task function available in this pool.
+   */
+  readonly listTaskFunctions: () => string[]
   /**
    * Sets the worker choice strategy in this pool.
    *