X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=367c205c977582f14ea68b4f8d8776eff373581f;hb=f4fb3543210a05ecc3dbe1bd9c188d2e09d1756d;hp=2bae50e71083ebde5075ddff357f78db1970a896;hpb=a35560bac09e829e1e19f88f8fd1d71a64c9d50b;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 2bae50e7..367c205c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,21 +1,67 @@ +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, + PoolEmitter, + PoolEvent, + PoolInfo, + PoolOptions, + PoolType, + TasksQueueOptions, + WorkerType +} from './pools/pool' export type { ErrorHandler, + EventLoopUtilizationMeasurementStatistics, ExitHandler, IWorker, + MeasurementStatistics, + MessageHandler, OnlineHandler, - PoolOptions -} from './pools/abstract-pool' -export { DynamicClusterPool } from './pools/cluster/dynamic' -export { FixedClusterPool } from './pools/cluster/fixed' -export type { ClusterPoolOptions } from './pools/cluster/fixed' -export type { IPool } from './pools/pool' -export { WorkerChoiceStrategies } from './pools/selection-strategies' -export type { WorkerChoiceStrategy } from './pools/selection-strategies' + Task, + TaskStatistics, + WorkerNode, + WorkerUsage +} from './pools/worker' +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 } from './pools/thread/fixed' -export type { ThreadWorkerWithMessageChannel } from './pools/thread/fixed' -export { AbstractWorker } from './worker/abstract-worker' +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' export { KillBehaviors } from './worker/worker-options' export type { KillBehavior, WorkerOptions } from './worker/worker-options' +export type { + TaskFunctions, + WorkerAsyncFunction, + WorkerFunction, + WorkerSyncFunction +} from './worker/worker-functions' +export type { + MessageValue, + PromiseResponseWrapper, + TaskError, + TaskPerformance, + WorkerStatistics +} from './utility-types' +export type { CircularArray } from './circular-array' +export type { Queue } from './queue'