repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: v4.0.12
[poolifier.git]
/
src
/
pools
/
worker.ts
diff --git
a/src/pools/worker.ts
b/src/pools/worker.ts
index 99c0d9a6feeea35815a520ff95a160d927bcc4fc..b2e6ba80198480f0edfe72e45c5eee56f80d03f7 100644
(file)
--- a/
src/pools/worker.ts
+++ b/
src/pools/worker.ts
@@
-1,7
+1,7
@@
import type { EventEmitter } from 'node:events'
import type { MessageChannel, WorkerOptions } from 'node:worker_threads'
import type { EventEmitter } from 'node:events'
import type { MessageChannel, WorkerOptions } from 'node:worker_threads'
-import type { Circular
Array } from '../circular-array
.js'
+import type { Circular
Buffer } from '../circular-buffer
.js'
import type { Task, TaskFunctionProperties } from '../utility-types.js'
/**
import type { Task, TaskFunctionProperties } from '../utility-types.js'
/**
@@
-52,6
+52,11
@@
export type EventHandler<Worker extends IWorker> =
| ErrorHandler<Worker>
| ExitHandler<Worker>
| ErrorHandler<Worker>
| ExitHandler<Worker>
+/**
+ * Measurement history size.
+ */
+export const MeasurementHistorySize = 386
+
/**
* Measurement statistics.
*
/**
* Measurement statistics.
*
@@
-81,7
+86,7
@@
export interface MeasurementStatistics {
/**
* Measurement history.
*/
/**
* Measurement history.
*/
- readonly history: Circular
Array<number>
+ readonly history: Circular
Buffer
}
/**
}
/**