X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=9bd8bbf9a7d99a755bf402e678011fed0e762314;hb=eb7bf7441d410ca5d9ff9bb08f191ef22399371c;hp=55355d2e33bc6dbf01e31eca234cbcb56c0a78ad;hpb=ce3bdc7fa682f86fdb6f4cd57fe0ac3afe3af0de;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 55355d2e..9bd8bbf9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,6 +17,7 @@ export type { } from './pools/pool' export type { ErrorHandler, + EventLoopUtilizationMeasurementStatistics, ExitHandler, IWorker, MeasurementStatistics, @@ -27,20 +28,23 @@ export type { WorkerNode, WorkerUsage } from './pools/worker' -export { WorkerChoiceStrategies } from './pools/selection-strategies/selection-strategies-types' +export { + Measurements, + WorkerChoiceStrategies +} from './pools/selection-strategies/selection-strategies-types' export type { IWorkerChoiceStrategy, + Measurement, + MeasurementOptions, + MeasurementStatisticsRequirements, + StrategyPolicy, TaskStatisticsRequirements, WorkerChoiceStrategy, WorkerChoiceStrategyOptions } from './pools/selection-strategies/selection-strategies-types' export type { WorkerChoiceStrategyContext } from './pools/selection-strategies/worker-choice-strategy-context' export { DynamicThreadPool } from './pools/thread/dynamic' -export { - FixedThreadPool, - type ThreadPoolOptions, - type ThreadWorkerWithMessageChannel -} from './pools/thread/fixed' +export { FixedThreadPool, type ThreadPoolOptions } from './pools/thread/fixed' export type { AbstractWorker } from './worker/abstract-worker' export { ClusterWorker } from './worker/cluster-worker' export { ThreadWorker } from './worker/thread-worker' @@ -53,7 +57,6 @@ export type { WorkerSyncFunction } from './worker/worker-functions' export type { - Draft, MessageValue, PromiseResponseWrapper, TaskError, @@ -62,3 +65,4 @@ export type { } from './utility-types' export type { CircularArray } from './circular-array' export type { Queue } from './queue' +export { availableParallelism } from './utils'