refactor: sensible defaults for worker choice strategy policy
[poolifier.git] / src / index.ts
... / ...
CommitLineData
1export type { AbstractPool } from './pools/abstract-pool'
2export { DynamicClusterPool } from './pools/cluster/dynamic'
3export {
4 FixedClusterPool,
5 type ClusterPoolOptions
6} from './pools/cluster/fixed'
7export { PoolEvents, PoolTypes } from './pools/pool'
8export type {
9 IPool,
10 PoolEmitter,
11 PoolEvent,
12 PoolInfo,
13 PoolOptions,
14 PoolType,
15 TasksQueueOptions
16} from './pools/pool'
17export { WorkerTypes } from './pools/worker'
18export type {
19 ErrorHandler,
20 EventLoopUtilizationMeasurementStatistics,
21 ExitHandler,
22 IWorker,
23 IWorkerNode,
24 MeasurementStatistics,
25 MessageHandler,
26 OnlineHandler,
27 TaskStatistics,
28 WorkerInfo,
29 WorkerType,
30 WorkerUsage
31} from './pools/worker'
32export {
33 Measurements,
34 WorkerChoiceStrategies
35} from './pools/selection-strategies/selection-strategies-types'
36export type {
37 IWorkerChoiceStrategy,
38 Measurement,
39 MeasurementOptions,
40 MeasurementStatisticsRequirements,
41 StrategyPolicy,
42 TaskStatisticsRequirements,
43 WorkerChoiceStrategy,
44 WorkerChoiceStrategyOptions
45} from './pools/selection-strategies/selection-strategies-types'
46export type { WorkerChoiceStrategyContext } from './pools/selection-strategies/worker-choice-strategy-context'
47export { DynamicThreadPool } from './pools/thread/dynamic'
48export { FixedThreadPool, type ThreadPoolOptions } from './pools/thread/fixed'
49export type { AbstractWorker } from './worker/abstract-worker'
50export { ClusterWorker } from './worker/cluster-worker'
51export { ThreadWorker } from './worker/thread-worker'
52export { KillBehaviors } from './worker/worker-options'
53export type {
54 KillBehavior,
55 WorkerOptions,
56 KillHandler
57} from './worker/worker-options'
58export type {
59 TaskAsyncFunction,
60 TaskFunction,
61 TaskFunctions,
62 TaskSyncFunction
63} from './worker/task-functions'
64export type {
65 MessageValue,
66 PromiseResponseWrapper,
67 Task,
68 TaskError,
69 TaskPerformance,
70 WorkerStatistics
71} from './utility-types'
72export type { CircularArray } from './circular-array'
73export type { Queue } from './queue'
74export { availableParallelism } from './utils'