X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fworker.ts;h=b2e6ba80198480f0edfe72e45c5eee56f80d03f7;hb=8e41ea40b8d3c58dd5f87476e5d587094aef3749;hp=99c0d9a6feeea35815a520ff95a160d927bcc4fc;hpb=2eee72204bc851f616ded11cb5381f96c6dc5cbf;p=poolifier.git diff --git a/src/pools/worker.ts b/src/pools/worker.ts index 99c0d9a6..b2e6ba80 100644 --- 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 { CircularArray } from '../circular-array.js' +import type { CircularBuffer } from '../circular-buffer.js' import type { Task, TaskFunctionProperties } from '../utility-types.js' /** @@ -52,6 +52,11 @@ export type EventHandler = | ErrorHandler | ExitHandler +/** + * Measurement history size. + */ +export const MeasurementHistorySize = 386 + /** * Measurement statistics. * @@ -81,7 +86,7 @@ export interface MeasurementStatistics { /** * Measurement history. */ - readonly history: CircularArray + readonly history: CircularBuffer } /**