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