X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=4730ad6557a5a922beb5db4aabb9eb0379832e06;hb=520c8c68ceeccd6b9f4cd363241fdd2c4d628234;hp=60536f99603b114c94df518f121bf30c1395f005;hpb=4c35177b63cac8a87aa6de389e1232e94c59b8c9;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 60536f99..4730ad65 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,19 +1,72 @@ +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' + 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, + type ThreadWorkerWithMessageChannel +} from './pools/thread/fixed' +export type { AbstractWorker } from './worker/abstract-worker' export { ClusterWorker } from './worker/cluster-worker' export { ThreadWorker } from './worker/thread-worker' -export type { WorkerOptions } from './worker/worker-options' -export { killBehaviorEnumeration } from './worker/worker-options' +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 { + Draft, + MessageValue, + PromiseResponseWrapper, + TaskError, + TaskPerformance, + WorkerStatistics +} from './utility-types' +export type { CircularArray } from './circular-array' +export type { Queue } from './queue'