X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=e779bf0c548fc16b3b2a86f79dd0f348ae8132e5;hb=refs%2Fheads%2Fmaster;hp=7242dd5e1fbe4c36bbbbd00f17bc3af7cc2c756d;hpb=cda5cc74c77bdfc37b220ef19637876e221b5061;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 7242dd5e..e779bf0c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,18 +1,84 @@ +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 type { ClusterPoolOptions } from './pools/cluster/fixed.js' +export { FixedClusterPool } from './pools/cluster/fixed.js' +export type { + IPool, + PoolEvent, + PoolInfo, + PoolOptions, + PoolType, + TasksQueueOptions, +} 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 { 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, + EventLoopUtilizationMeasurementStatistics, ExitHandler, IWorker, + IWorkerNode, + 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' -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 { ClusterWorker } from './worker/cluster-worker' -export { ThreadWorker } from './worker/thread-worker' -export type { WorkerOptions } from './worker/worker-options' + StrategyData, + TaskStatistics, + WorkerInfo, + WorkerNodeEventDetail, + WorkerNodeOptions, + WorkerType, + WorkerUsage, +} from './pools/worker.js' +export { WorkerTypes } from './pools/worker.js' +export type { PriorityQueue, PriorityQueueNode } from './priority-queue.js' +export type { + 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 type { + TaskAsyncFunction, + TaskFunction, + TaskFunctionObject, + TaskFunctionOperationResult, + TaskFunctions, + TaskSyncFunction, +} from './worker/task-functions.js' +export { ThreadWorker } from './worker/thread-worker.js' +export type { + KillBehavior, + KillHandler, + WorkerOptions, +} from './worker/worker-options.js' +export { KillBehaviors } from './worker/worker-options.js'