X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=e779bf0c548fc16b3b2a86f79dd0f348ae8132e5;hb=5993cfc5a031fd2d64f644505db125bc1d28b05b;hp=1548487fa01b8ef226f27948fbf72575e06c45e1;hpb=4335b463013675c6f5f0cd49c86ba7c75cb59c76;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 1548487f..e779bf0c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,17 +1,39 @@ +export type { CircularBuffer } from './circular-buffer.js' +export type { + FixedPriorityQueue, + FixedPriorityQueueNode, +} from './fixed-priority-queue.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, PoolInfo, PoolOptions, PoolType, - TasksQueueOptions + 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 { WorkerChoiceStrategiesContext } from './pools/selection-strategies/worker-choice-strategies-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, @@ -28,51 +50,35 @@ export type { WorkerNodeEventDetail, WorkerNodeOptions, WorkerType, - WorkerUsage + WorkerUsage, } from './pools/worker.js' -export { - Measurements, - WorkerChoiceStrategies -} from './pools/selection-strategies/selection-strategies-types.js' +export { WorkerTypes } from './pools/worker.js' +export type { PriorityQueue, PriorityQueueNode } from './priority-queue.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, + TaskFunctionProperties, + 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, + TaskFunctionObject, TaskFunctionOperationResult, TaskFunctions, - TaskSyncFunction + 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'