X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=4730ad6557a5a922beb5db4aabb9eb0379832e06;hb=520c8c68ceeccd6b9f4cd363241fdd2c4d628234;hp=92ed93a11cf52c2fe27a8ca034a58c46d0755ca0;hpb=b4904890be69e53510b67172dda7b6bbf50a635a;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 92ed93a1..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 } from './pools/cluster/fixed' -export type { ClusterPoolOptions } from './pools/cluster/fixed' -export type { IPool, PoolEmitter, PoolOptions } from './pools/pool' +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 -} from './pools/pool-worker' -export { WorkerChoiceStrategies } from './pools/selection-strategies/selection-strategies-types' -export type { WorkerChoiceStrategy } from './pools/selection-strategies/selection-strategies-types' + OnlineHandler, + 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 { + 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 { 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'