X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=5b0eb9090e3c8cf583a67ee6c9d392842a23267c;hb=dc83654281bc46f8b391e694749cecf106bcd681;hp=1548487fa01b8ef226f27948fbf72575e06c45e1;hpb=4335b463013675c6f5f0cd49c86ba7c75cb59c76;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 1548487f..5b0eb909 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,9 @@ +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 { FixedClusterPool } from './pools/cluster/fixed.js' export type { ClusterPoolOptions } from './pools/cluster/fixed.js' -export { PoolEvents, PoolTypes } from './pools/pool.js' +export { FixedClusterPool } from './pools/cluster/fixed.js' export type { IPool, PoolEvent, @@ -11,7 +12,25 @@ export type { PoolType, TasksQueueOptions } from './pools/pool.js' -export { WorkerTypes } from './pools/worker.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, @@ -30,33 +49,19 @@ export type { WorkerType, WorkerUsage } from './pools/worker.js' -export { - Measurements, - WorkerChoiceStrategies -} from './pools/selection-strategies/selection-strategies-types.js' +export { WorkerTypes } from './pools/worker.js' export type { - IWorkerChoiceStrategy, - Measurement, - MeasurementOptions, - MeasurementStatisticsRequirements, - StrategyPolicy, - TaskStatisticsRequirements, - WorkerChoiceStrategy, - WorkerChoiceStrategyOptions -} 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 { FixedThreadPool } from './pools/thread/fixed.js' -export type { ThreadPoolOptions } from './pools/thread/fixed.js' + 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 { ThreadWorker } from './worker/thread-worker.js' -export { KillBehaviors } from './worker/worker-options.js' -export type { - KillBehavior, - KillHandler, - WorkerOptions -} from './worker/worker-options.js' export type { TaskAsyncFunction, TaskFunction, @@ -64,15 +69,10 @@ export type { TaskFunctions, TaskSyncFunction } from './worker/task-functions.js' +export { ThreadWorker } from './worker/thread-worker.js' export type { - MessageValue, - PromiseResponseWrapper, - Task, - TaskPerformance, - WorkerError, - WorkerStatistics, - Writable -} from './utility-types.js' -export type { CircularArray } from './circular-array.js' -export type { Deque, LinkedListNode } from './deque.js' -export { availableParallelism } from './utils.js' + KillBehavior, + KillHandler, + WorkerOptions +} from './worker/worker-options.js' +export { KillBehaviors } from './worker/worker-options.js'