fix: fix fair share algorithm implementation
[poolifier.git] / src / pools / worker.ts
index 716376faf54ac6925cf4d4ff2ea4804e1d2cb38e..2db5f630fefa5a1e81161ca75362e7c73fc450a1 100644 (file)
@@ -37,12 +37,16 @@ export type ExitHandler<Worker extends IWorker> = (
  * @internal
  */
 export interface Task<Data = unknown> {
+  /**
+   * Task name.
+   */
+  readonly name?: string
   /**
    * Task input data that will be passed to the worker.
    */
   readonly data?: Data
   /**
-   * UUID of the message.
+   * Message UUID.
    */
   readonly id?: string
 }