repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into chore/use-biome
[poolifier.git]
/
src
/
utility-types.ts
diff --git
a/src/utility-types.ts
b/src/utility-types.ts
index d6869557d5af04ec06444e320d1fe6cac41cadc0..e1fb311e45b4eb8ed0e5d33cda3b3806d7526f5b 100644
(file)
--- a/
src/utility-types.ts
+++ b/
src/utility-types.ts
@@
-47,13
+47,19
@@
export interface TaskPerformance {
}
/**
}
/**
- *
Performance statistics computation
.
+ *
Worker task performance statistics computation settings
.
*
* @internal
*/
export interface WorkerStatistics {
*
* @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
}
/**
}
/**
@@
-101,7
+107,7
@@
export interface MessageValue<Data = unknown, ErrorData = unknown>
/**
* Kill code.
*/
/**
* Kill code.
*/
- readonly kill?: KillBehavior | true
+ readonly kill?: KillBehavior | true
| 'success' | 'failure'
/**
* Task error.
*/
/**
* Task error.
*/
@@
-110,6
+116,10
@@
export interface MessageValue<Data = unknown, ErrorData = unknown>
* Task performance.
*/
readonly taskPerformance?: TaskPerformance
* Task performance.
*/
readonly taskPerformance?: TaskPerformance
+ /**
+ * Task function names.
+ */
+ readonly taskFunctions?: string[]
/**
* Whether the worker computes the given statistics or not.
*/
/**
* Whether the worker computes the given statistics or not.
*/
@@
-148,3
+158,5
@@
export interface PromiseResponseWrapper<Response = unknown> {
*/
readonly workerNodeKey: number
}
*/
readonly workerNodeKey: number
}
+
+export type Writable<T> = { -readonly [P in keyof T]: T[P] }