refactor: more worker function -> task function renaming
[poolifier.git] / src / index.ts
1 export type { AbstractPool } from './pools/abstract-pool'
2 export { DynamicClusterPool } from './pools/cluster/dynamic'
3 export {
4 FixedClusterPool,
5 type ClusterPoolOptions
6 } from './pools/cluster/fixed'
7 export { PoolEvents, PoolTypes } from './pools/pool'
8 export type {
9 IPool,
10 PoolEmitter,
11 PoolEvent,
12 PoolInfo,
13 PoolOptions,
14 PoolType,
15 TasksQueueOptions
16 } from './pools/pool'
17 export { WorkerTypes } from './pools/worker'
18 export 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'
32 export {
33 Measurements,
34 WorkerChoiceStrategies
35 } from './pools/selection-strategies/selection-strategies-types'
36 export 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'
46 export type { WorkerChoiceStrategyContext } from './pools/selection-strategies/worker-choice-strategy-context'
47 export { DynamicThreadPool } from './pools/thread/dynamic'
48 export { FixedThreadPool, type ThreadPoolOptions } from './pools/thread/fixed'
49 export type { AbstractWorker } from './worker/abstract-worker'
50 export { ClusterWorker } from './worker/cluster-worker'
51 export { ThreadWorker } from './worker/thread-worker'
52 export { KillBehaviors } from './worker/worker-options'
53 export type { KillBehavior, WorkerOptions } from './worker/worker-options'
54 export type {
55 TaskAsyncFunction,
56 TaskFunction,
57 TaskFunctions,
58 TaskSyncFunction
59 } from './worker/task-functions'
60 export type {
61 MessageValue,
62 PromiseResponseWrapper,
63 Task,
64 TaskError,
65 TaskPerformance,
66 WorkerStatistics
67 } from './utility-types'
68 export type { CircularArray } from './circular-array'
69 export type { Queue } from './queue'
70 export { availableParallelism } from './utils'