repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: add changelog entry
[poolifier.git]
/
src
/
index.ts
diff --git
a/src/index.ts
b/src/index.ts
index 993cbe933e6109b28a2984a126bd734d2b7f10f1..8a3cb9b1e2ef2521a83bfed53267980d61d8e786 100644
(file)
--- a/
src/index.ts
+++ b/
src/index.ts
@@
-1,8
+1,10
@@
-export { DynamicClusterPool } from './pools/cluster/dynamic'
-export { FixedClusterPool } from './pools/cluster/fixed'
-export type { ClusterPoolOptions } from './pools/cluster/fixed'
export type { AbstractPool } from './pools/abstract-pool'
export type { AbstractPool } from './pools/abstract-pool'
-export { PoolEvents, PoolTypes, WorkerTypes } from './pools/pool'
+export { DynamicClusterPool } from './pools/cluster/dynamic'
+export {
+ FixedClusterPool,
+ type ClusterPoolOptions
+} from './pools/cluster/fixed'
+export { PoolEvents, PoolTypes } from './pools/pool'
export type {
IPool,
PoolEmitter,
export type {
IPool,
PoolEmitter,
@@
-10,30
+12,40
@@
export type {
PoolInfo,
PoolOptions,
PoolType,
PoolInfo,
PoolOptions,
PoolType,
- TasksQueueOptions,
- WorkerType
+ TasksQueueOptions
} from './pools/pool'
} from './pools/pool'
+export { WorkerTypes } from './pools/worker'
export type {
ErrorHandler,
export type {
ErrorHandler,
+ EventLoopUtilizationMeasurementStatistics,
ExitHandler,
IWorker,
ExitHandler,
IWorker,
+ IWorkerNode,
+ MeasurementStatistics,
MessageHandler,
OnlineHandler,
MessageHandler,
OnlineHandler,
- Task,
- TasksUsage,
- WorkerNode
+ TaskStatistics,
+ WorkerInfo,
+ WorkerType,
+ WorkerUsage
} from './pools/worker'
} from './pools/worker'
-export { WorkerChoiceStrategies } from './pools/selection-strategies/selection-strategies-types'
+export {
+ Measurements,
+ WorkerChoiceStrategies
+} from './pools/selection-strategies/selection-strategies-types'
export type {
IWorkerChoiceStrategy,
export type {
IWorkerChoiceStrategy,
- TaskStatistics,
+ Measurement,
+ MeasurementOptions,
+ MeasurementStatisticsRequirements,
+ StrategyPolicy,
+ TaskStatisticsRequirements,
WorkerChoiceStrategy,
WorkerChoiceStrategyOptions
} from './pools/selection-strategies/selection-strategies-types'
export type { WorkerChoiceStrategyContext } from './pools/selection-strategies/worker-choice-strategy-context'
export { DynamicThreadPool } from './pools/thread/dynamic'
WorkerChoiceStrategy,
WorkerChoiceStrategyOptions
} from './pools/selection-strategies/selection-strategies-types'
export type { WorkerChoiceStrategyContext } from './pools/selection-strategies/worker-choice-strategy-context'
export { DynamicThreadPool } from './pools/thread/dynamic'
-export { FixedThreadPool } from './pools/thread/fixed'
-export type { ThreadWorkerWithMessageChannel } from './pools/thread/fixed'
+export { FixedThreadPool, type ThreadPoolOptions } from './pools/thread/fixed'
export type { AbstractWorker } from './worker/abstract-worker'
export { ClusterWorker } from './worker/cluster-worker'
export { ThreadWorker } from './worker/thread-worker'
export type { AbstractWorker } from './worker/abstract-worker'
export { ClusterWorker } from './worker/cluster-worker'
export { ThreadWorker } from './worker/thread-worker'
@@
-46,9
+58,13
@@
export type {
WorkerSyncFunction
} from './worker/worker-functions'
export type {
WorkerSyncFunction
} from './worker/worker-functions'
export type {
- Draft,
MessageValue,
MessageValue,
- PromiseResponseWrapper
+ PromiseResponseWrapper,
+ Task,
+ TaskError,
+ TaskPerformance,
+ WorkerStatistics
} from './utility-types'
export type { CircularArray } from './circular-array'
export type { Queue } from './queue'
} from './utility-types'
export type { CircularArray } from './circular-array'
export type { Queue } from './queue'
+export { availableParallelism } from './utils'