repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: refine benchmark README.md
[poolifier.git]
/
src
/
pools
/
worker.ts
diff --git
a/src/pools/worker.ts
b/src/pools/worker.ts
index 5cd58b28be9b2ee3ef44be54af4e2fb6bdcddca2..29050455088c6efd49d8147aed07c41f2a5a004e 100644
(file)
--- a/
src/pools/worker.ts
+++ b/
src/pools/worker.ts
@@
-171,6
+171,15
@@
export interface WorkerUsage {
readonly elu: EventLoopUtilizationMeasurementStatistics
}
readonly elu: EventLoopUtilizationMeasurementStatistics
}
+/**
+ * Worker choice strategy data.
+ *
+ * @internal
+ */
+export interface StrategyData {
+ virtualTaskEndTimestamp?: number
+}
+
/**
* Worker interface.
*/
/**
* Worker interface.
*/
@@
-227,6
+236,11
@@
export interface IWorkerNode<Worker extends IWorker, Data = unknown> {
* Worker usage statistics.
*/
readonly usage: WorkerUsage
* Worker usage statistics.
*/
readonly usage: WorkerUsage
+ /**
+ * Worker choice strategy data.
+ * This is used to store data that is specific to the worker choice strategy.
+ */
+ strategyData?: StrategyData
/**
* Message channel (worker_threads only).
*/
/**
* Message channel (worker_threads only).
*/