Add dynamic worker choice strategy change at runtime
[poolifier.git] / src / index.ts
index 2bae50e71083ebde5075ddff357f78db1970a896..b0c419ca89e4f6d1838ffe93368d26e3d292d77c 100644 (file)
@@ -1,16 +1,15 @@
-export type {
-  ErrorHandler,
-  ExitHandler,
-  IWorker,
-  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 { WorkerChoiceStrategies } from './pools/selection-strategies'
-export type { WorkerChoiceStrategy } from './pools/selection-strategies'
+export type { IPool, PoolOptions } from './pools/pool'
+export type {
+  ErrorHandler,
+  ExitHandler,
+  IPoolWorker,
+  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'