Add WRR worker choice strategy
[poolifier.git] / src / index.ts
index 6cc415000d1b27c19483417ad3ce9013b2b5aa59..b0c419ca89e4f6d1838ffe93368d26e3d292d77c 100644 (file)
@@ -1,14 +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 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'