feat: expose pool information
[poolifier.git] / src / index.ts
CommitLineData
c97c7edb
S
1export { DynamicClusterPool } from './pools/cluster/dynamic'
2export { FixedClusterPool } from './pools/cluster/fixed'
3export type { ClusterPoolOptions } from './pools/cluster/fixed'
c4855468 4export type { AbstractPool } from './pools/abstract-pool'
6b27d407 5export { PoolEvents, PoolTypes } from './pools/pool'
0274ce2d
JB
6export type {
7 IPool,
8 PoolEmitter,
0274ce2d 9 PoolEvent,
6b27d407 10 PoolInfo,
c7c04698 11 PoolOptions,
e8bd29ce 12 PoolType,
0274ce2d
JB
13 TasksQueueOptions
14} from './pools/pool'
bdaf31cd
JB
15export type {
16 ErrorHandler,
17 ExitHandler,
0274ce2d 18 IWorker,
ea7a90d3 19 MessageHandler,
c4855468 20 OnlineHandler,
e8bd29ce
JB
21 Task,
22 TasksUsage,
c4855468 23 WorkerNode
f06e48d8 24} from './pools/worker'
bdaf31cd 25export { WorkerChoiceStrategies } from './pools/selection-strategies/selection-strategies-types'
8125b6a2 26export type {
c4855468 27 IWorkerChoiceStrategy,
e8bd29ce 28 RequiredStatistics,
8125b6a2
JB
29 WorkerChoiceStrategy,
30 WorkerChoiceStrategyOptions
31} from './pools/selection-strategies/selection-strategies-types'
c4855468 32export type { WorkerChoiceStrategyContext } from './pools/selection-strategies/worker-choice-strategy-context'
c97c7edb
S
33export { DynamicThreadPool } from './pools/thread/dynamic'
34export { FixedThreadPool } from './pools/thread/fixed'
35export type { ThreadWorkerWithMessageChannel } from './pools/thread/fixed'
c4855468 36export type { AbstractWorker } from './worker/abstract-worker'
c97c7edb
S
37export { ClusterWorker } from './worker/cluster-worker'
38export { ThreadWorker } from './worker/thread-worker'
1a81f8af
S
39export { KillBehaviors } from './worker/worker-options'
40export type { KillBehavior, WorkerOptions } from './worker/worker-options'
e8bd29ce
JB
41export type {
42 Draft,
48ef9107 43 MessageValue,
c7c04698
JB
44 PromiseResponseWrapper,
45 TaskFunctions,
48ef9107
JB
46 WorkerAsyncFunction,
47 WorkerFunction,
48 WorkerSyncFunction
e8bd29ce 49} from './utility-types'
4342a45e 50export type { CircularArray } from './circular-array'
13455ed2 51export type { Queue } from './queue'