X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Findex.ts;h=993cbe933e6109b28a2984a126bd734d2b7f10f1;hb=d9d31201e7767e7936ee4d1c0b944ee71786d0bb;hp=d1482c8336aa0bfc755217ac015a58f2766af0e4;hpb=48ef910747c7eafb18ebfff83d8eb24e5f5be26c;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index d1482c83..993cbe93 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,14 +2,16 @@ 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 { PoolEvents, PoolTypes, WorkerTypes } from './pools/pool' export type { IPool, PoolEmitter, - PoolOptions, PoolEvent, + PoolInfo, + PoolOptions, PoolType, - TasksQueueOptions + TasksQueueOptions, + WorkerType } from './pools/pool' export type { ErrorHandler, @@ -24,7 +26,7 @@ export type { export { WorkerChoiceStrategies } from './pools/selection-strategies/selection-strategies-types' export type { IWorkerChoiceStrategy, - RequiredStatistics, + TaskStatistics, WorkerChoiceStrategy, WorkerChoiceStrategyOptions } from './pools/selection-strategies/selection-strategies-types' @@ -38,11 +40,15 @@ export { ThreadWorker } from './worker/thread-worker' export { KillBehaviors } from './worker/worker-options' export type { KillBehavior, WorkerOptions } from './worker/worker-options' export type { - Draft, - PromiseResponseWrapper, - MessageValue, + TaskFunctions, WorkerAsyncFunction, WorkerFunction, WorkerSyncFunction +} from './worker/worker-functions' +export type { + Draft, + MessageValue, + PromiseResponseWrapper } from './utility-types' export type { CircularArray } from './circular-array' +export type { Queue } from './queue'