X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=4431b0f98f2617376df1d82937316633267f16de;hb=184855e69fea29f1018024a34be10de2c8e3141a;hp=6cc415000d1b27c19483417ad3ce9013b2b5aa59;hpb=eb3b4c1592abc3f91acfe98c236a02ca994febff;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 6cc41500..4431b0f9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,19 +1,52 @@ +export { DynamicClusterPool } from './pools/cluster/dynamic' +export { FixedClusterPool } from './pools/cluster/fixed' +export type { ClusterPoolOptions } from './pools/cluster/fixed' +export type { AbstractPool } from './pools/abstract-pool' +export { PoolEvents, PoolTypes, WorkerTypes } from './pools/pool' +export type { + IPool, + PoolEmitter, + PoolEvent, + PoolInfo, + PoolOptions, + PoolType, + TasksQueueOptions, + WorkerType +} from './pools/pool' export type { ErrorHandler, ExitHandler, IWorker, + 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' + Task, + TasksUsage, + WorkerNode +} from './pools/worker' +export { WorkerChoiceStrategies } from './pools/selection-strategies/selection-strategies-types' +export type { + IWorkerChoiceStrategy, + RequiredStatistics, + 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 { AbstractWorker } from './worker/abstract-worker' +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 { + Draft, + MessageValue, + PromiseResponseWrapper, + TaskFunctions, + WorkerAsyncFunction, + WorkerFunction, + WorkerSyncFunction +} from './utility-types' +export type { CircularArray } from './circular-array' +export type { Queue } from './queue'