refactor: encapsulate worker node handling logic into its own class
[poolifier.git] / src / index.ts
CommitLineData
c4855468 1export type { AbstractPool } from './pools/abstract-pool'
fe61e2b9
JB
2export { DynamicClusterPool } from './pools/cluster/dynamic'
3export {
4 FixedClusterPool,
5 type ClusterPoolOptions
6} from './pools/cluster/fixed'
4b628b48 7export { PoolEvents, PoolTypes } from './pools/pool'
0274ce2d
JB
8export type {
9 IPool,
10 PoolEmitter,
0274ce2d 11 PoolEvent,
6b27d407 12 PoolInfo,
c7c04698 13 PoolOptions,
e8bd29ce 14 PoolType,
4b628b48 15 TasksQueueOptions
0274ce2d 16} from './pools/pool'
4b628b48 17export { WorkerTypes } from './pools/worker'
bdaf31cd
JB
18export type {
19 ErrorHandler,
9adcefab 20 EventLoopUtilizationMeasurementStatistics,
bdaf31cd 21 ExitHandler,
0274ce2d 22 IWorker,
4b628b48 23 IWorkerNode,
87de9ff5 24 MeasurementStatistics,
ea7a90d3 25 MessageHandler,
c4855468 26 OnlineHandler,
e8bd29ce 27 Task,
87de9ff5 28 TaskStatistics,
bff4b6ed 29 WorkerInfo,
4b628b48 30 WorkerType,
87de9ff5 31 WorkerUsage
f06e48d8 32} from './pools/worker'
9adcefab
JB
33export {
34 Measurements,
35 WorkerChoiceStrategies
36} from './pools/selection-strategies/selection-strategies-types'
8125b6a2 37export type {
c4855468 38 IWorkerChoiceStrategy,
9adcefab
JB
39 Measurement,
40 MeasurementOptions,
41 MeasurementStatisticsRequirements,
4a1fe3d4 42 StrategyPolicy,
87de9ff5 43 TaskStatisticsRequirements,
8125b6a2
JB
44 WorkerChoiceStrategy,
45 WorkerChoiceStrategyOptions
46} from './pools/selection-strategies/selection-strategies-types'
c4855468 47export type { WorkerChoiceStrategyContext } from './pools/selection-strategies/worker-choice-strategy-context'
c97c7edb 48export { DynamicThreadPool } from './pools/thread/dynamic'
e102732c 49export { FixedThreadPool, type ThreadPoolOptions } from './pools/thread/fixed'
d715b7bc 50export type { AbstractWorker } from './worker/abstract-worker'
c97c7edb
S
51export { ClusterWorker } from './worker/cluster-worker'
52export { ThreadWorker } from './worker/thread-worker'
1a81f8af
S
53export { KillBehaviors } from './worker/worker-options'
54export type { KillBehavior, WorkerOptions } from './worker/worker-options'
e8bd29ce 55export type {
c7c04698 56 TaskFunctions,
48ef9107
JB
57 WorkerAsyncFunction,
58 WorkerFunction,
59 WorkerSyncFunction
b6b32453
JB
60} from './worker/worker-functions'
61export type {
b6b32453 62 MessageValue,
0ea4c067 63 PromiseResponseWrapper,
87de9ff5 64 TaskError,
d715b7bc 65 TaskPerformance,
0ea4c067 66 WorkerStatistics
e8bd29ce 67} from './utility-types'
4342a45e 68export type { CircularArray } from './circular-array'
13455ed2 69export type { Queue } from './queue'
51474716 70export { availableParallelism } from './utils'