X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Findex.ts;h=349af12c369e207713af37bfac8f18efb3c929ef;hb=aee467366d8c393b79e7af82c6a7ab12338ee64e;hp=4bd61868fe4b2365632b2e2a312be274f60752aa;hpb=fa699c4287a0a4940862e452109dddc7be53403b;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 4bd61868..349af12c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,12 +1,20 @@ -import { DynamicThreadPool } from './dynamic' -import { FixedThreadPool } from './fixed' -import { ThreadWorker } from './workers' - -export { DynamicThreadPoolOptions } from './dynamic' -export { - Draft, - FixedThreadPoolOptions, - WorkerWithMessageChannel -} from './fixed' -export { ThreadWorkerOptions } from './workers' -export { FixedThreadPool, DynamicThreadPool, ThreadWorker } +export { DynamicClusterPool } from './pools/cluster/dynamic' +export { FixedClusterPool } from './pools/cluster/fixed' +export type { ClusterPoolOptions } from './pools/cluster/fixed' +export { PoolEvents } from './pools/pool' +export type { IPool, PoolEmitter, PoolOptions, PoolEvent } from './pools/pool' +export type { + ErrorHandler, + ExitHandler, + 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 { 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'