X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=5b0eb9090e3c8cf583a67ee6c9d392842a23267c;hb=c3024c5998f1aa6c228c5db083e160b6fd967d7c;hp=a4e22756afc61c8bfe9bd0ff58b088d2031b06c3;hpb=89757908a0cf61d60dcf28323c5c23c4ef66fcf2;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index a4e22756..5b0eb909 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,22 +1,39 @@ -export type { AbstractPool } from './pools/abstract-pool' -export { DynamicClusterPool } from './pools/cluster/dynamic' -export { - FixedClusterPool, - type ClusterPoolOptions -} from './pools/cluster/fixed' -export { PoolEvents, PoolTypes } from './pools/pool' +export type { CircularArray } from './circular-array.js' +export type { Deque, ILinkedListNode } from './deque.js' +export type { AbstractPool } from './pools/abstract-pool.js' +export { DynamicClusterPool } from './pools/cluster/dynamic.js' +export type { ClusterPoolOptions } from './pools/cluster/fixed.js' +export { FixedClusterPool } from './pools/cluster/fixed.js' export type { IPool, - PoolEmitter, PoolEvent, PoolInfo, PoolOptions, PoolType, TasksQueueOptions -} from './pools/pool' -export { WorkerTypes } from './pools/worker' +} from './pools/pool.js' +export { PoolEvents, PoolTypes } from './pools/pool.js' +export type { + IWorkerChoiceStrategy, + Measurement, + MeasurementOptions, + MeasurementStatisticsRequirements, + StrategyPolicy, + TaskStatisticsRequirements, + WorkerChoiceStrategy, + WorkerChoiceStrategyOptions +} from './pools/selection-strategies/selection-strategies-types.js' +export { + Measurements, + WorkerChoiceStrategies +} from './pools/selection-strategies/selection-strategies-types.js' +export type { WorkerChoiceStrategyContext } from './pools/selection-strategies/worker-choice-strategy-context.js' +export { DynamicThreadPool } from './pools/thread/dynamic.js' +export type { ThreadPoolOptions } from './pools/thread/fixed.js' +export { FixedThreadPool } from './pools/thread/fixed.js' export type { ErrorHandler, + EventHandler, EventLoopUtilizationMeasurementStatistics, ExitHandler, IWorker, @@ -24,51 +41,38 @@ export type { MeasurementStatistics, MessageHandler, OnlineHandler, + StrategyData, TaskStatistics, WorkerInfo, + WorkerNodeEventDetail, + WorkerNodeOptions, WorkerType, WorkerUsage -} from './pools/worker' -export { - Measurements, - WorkerChoiceStrategies -} from './pools/selection-strategies/selection-strategies-types' +} from './pools/worker.js' +export { WorkerTypes } from './pools/worker.js' 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 } 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, - KillHandler -} from './worker/worker-options' + MessageValue, + PromiseResponseWrapper, + Task, + TaskPerformance, + WorkerError, + WorkerStatistics, + Writable +} from './utility-types.js' +export { availableParallelism } from './utils.js' +export type { AbstractWorker } from './worker/abstract-worker.js' +export { ClusterWorker } from './worker/cluster-worker.js' export type { TaskAsyncFunction, TaskFunction, + TaskFunctionOperationResult, TaskFunctions, TaskSyncFunction -} from './worker/task-functions' +} from './worker/task-functions.js' +export { ThreadWorker } from './worker/thread-worker.js' export type { - MessageValue, - PromiseResponseWrapper, - Task, - TaskError, - TaskPerformance, - WorkerStatistics -} from './utility-types' -export type { CircularArray } from './circular-array' -export type { Queue } from './queue' -export { availableParallelism } from './utils' + KillBehavior, + KillHandler, + WorkerOptions +} from './worker/worker-options.js' +export { KillBehaviors } from './worker/worker-options.js'