chore: v2.6.43
[poolifier.git] / src / utility-types.ts
index a418ee885f903d3bb9838c0c34be0e6bbce43524..e1fb311e45b4eb8ed0e5d33cda3b3806d7526f5b 100644 (file)
@@ -47,13 +47,19 @@ export interface TaskPerformance {
 }
 
 /**
- * Performance statistics computation.
+ * Worker task performance statistics computation settings.
  *
  * @internal
  */
 export interface WorkerStatistics {
-  runTime: boolean
-  elu: boolean
+  /**
+   * Whether the worker computes the task runtime or not.
+   */
+  readonly runTime: boolean
+  /**
+   * Whether the worker computes the task event loop utilization (ELU) or not.
+   */
+  readonly elu: boolean
 }
 
 /**
@@ -152,3 +158,5 @@ export interface PromiseResponseWrapper<Response = unknown> {
    */
   readonly workerNodeKey: number
 }
+
+export type Writable<T> = { -readonly [P in keyof T]: T[P] }