X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=dce003805d0ee3c7d44d499d33ce4454c188f8e0;hb=d655c2c2b159a39f900230c14b301ba123653362;hp=4bd61868fe4b2365632b2e2a312be274f60752aa;hpb=fa699c4287a0a4940862e452109dddc7be53403b;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 4bd61868..dce00380 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,12 +1,45 @@ -import { DynamicThreadPool } from './dynamic' -import { FixedThreadPool } from './fixed' -import { ThreadWorker } from './workers' - -export { DynamicThreadPoolOptions } from './dynamic' -export { +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 } from './pools/pool' +export type { + IPool, + PoolEmitter, + PoolOptions, + PoolEvent, + PoolType, + TasksQueueOptions +} from './pools/pool' +export type { + ErrorHandler, + ExitHandler, + IWorker, + MessageHandler, + OnlineHandler, + 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 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, - FixedThreadPoolOptions, - WorkerWithMessageChannel -} from './fixed' -export { ThreadWorkerOptions } from './workers' -export { FixedThreadPool, DynamicThreadPool, ThreadWorker } + PromiseResponseWrapper, + MessageValue +} from './utility-types' +export type { CircularArray } from './circular-array'