X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=6c139a27950240a97fc69357f6094d5d765001b4;hb=a6f7f1b40b3591b19a58f69b22e751c4c4311522;hp=db6960b86af815b03e43460a3cfef9dfc591a3f8;hpb=7e00d939d448a0439a4bddbb64c06d28cb9527a0;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index db6960b8..6c139a27 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,14 +1,21 @@ -import DynamicThreadPool from './dynamic' -import FixedThreadPool from './fixed' -import { ThreadWorker } from './workers' - -export { - Draft, - FixedThreadPoolOptions, - WorkerWithMessageChannel -} from './fixed' -export { DynamicThreadPoolOptions } from './dynamic' -export { ThreadWorkerOptions } from './workers' -export { FixedThreadPool, DynamicThreadPool, ThreadWorker } - -module.exports = { FixedThreadPool, DynamicThreadPool, ThreadWorker } +export { DynamicClusterPool } from './pools/cluster/dynamic' +export { FixedClusterPool } from './pools/cluster/fixed' +export type { ClusterPoolOptions } from './pools/cluster/fixed' +export type { IPool, PoolOptions } from './pools/pool' +export type { + ErrorHandler, + ExitHandler, + IPoolWorker, + MessageHandler, + OnlineHandler +} from './pools/pool-worker' +export { WorkerChoiceStrategies } from './pools/selection-strategies/selection-strategies-types' +export type { WorkerChoiceStrategy } from './pools/selection-strategies/selection-strategies-types' +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 { KillBehaviors } from './worker/worker-options' +export type { KillBehavior, WorkerOptions } from './worker/worker-options'