X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=eeda859ec863ab317e78d0303f9801c5a7f16f1d;hb=52d54060bedd4627670e6181a4465293c528f5bb;hp=993cbe933e6109b28a2984a126bd734d2b7f10f1;hpb=a788de39a01b042deb0707c2e92af99181b933d2;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 993cbe93..eeda859e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,9 @@ -export { DynamicClusterPool } from './pools/cluster/dynamic' -export { FixedClusterPool } from './pools/cluster/fixed' -export type { ClusterPoolOptions } from './pools/cluster/fixed' export type { AbstractPool } from './pools/abstract-pool' +export { DynamicClusterPool } from './pools/cluster/dynamic' +export { + FixedClusterPool, + type ClusterPoolOptions +} from './pools/cluster/fixed' export { PoolEvents, PoolTypes, WorkerTypes } from './pools/pool' export type { IPool, @@ -15,25 +17,35 @@ export type { } from './pools/pool' export type { ErrorHandler, + EventLoopUtilizationMeasurementStatistics, ExitHandler, IWorker, + MeasurementStatistics, MessageHandler, OnlineHandler, Task, - TasksUsage, - WorkerNode + 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, - TaskStatistics, + 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 } from './pools/thread/fixed' -export 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' @@ -46,9 +58,12 @@ export type { WorkerSyncFunction } from './worker/worker-functions' export type { - Draft, MessageValue, - PromiseResponseWrapper + PromiseResponseWrapper, + TaskError, + TaskPerformance, + WorkerStatistics } from './utility-types' export type { CircularArray } from './circular-array' export type { Queue } from './queue' +export { availableParallelism } from './utils'