X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=eeda859ec863ab317e78d0303f9801c5a7f16f1d;hb=5e52ff6159ff1d648aa15d8a4cbbb084e8cd479f;hp=55355d2e33bc6dbf01e31eca234cbcb56c0a78ad;hpb=f0bbd436ca3a985f79cf530ba82805d8d617d509;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 55355d2e..eeda859e 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, @@ -24,23 +25,27 @@ export type { OnlineHandler, Task, TaskStatistics, + WorkerInfo, 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 +58,6 @@ export type { WorkerSyncFunction } from './worker/worker-functions' export type { - Draft, MessageValue, PromiseResponseWrapper, TaskError, @@ -62,3 +66,4 @@ export type { } from './utility-types' export type { CircularArray } from './circular-array' export type { Queue } from './queue' +export { availableParallelism } from './utils'