X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Findex.ts;h=a5ffc3a3528b7c737786958b392b199860626413;hb=refs%2Ftags%2Fv3.1.0;hp=54c352fc9f4f4b527201b4ef30198cd1c89e5c28;hpb=658b9aa08266ed9a8ae3c0fc947d237fa2674f09;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 54c352fc..a5ffc3a3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,20 +1,16 @@ export type { AbstractPool } from './pools/abstract-pool' export { DynamicClusterPool } from './pools/cluster/dynamic' -export { - FixedClusterPool, - type ClusterPoolOptions -} from './pools/cluster/fixed' +export { FixedClusterPool } from './pools/cluster/fixed' export { PoolEvents, PoolTypes } from './pools/pool' export type { IPool, - PoolEmitter, PoolEvent, PoolInfo, PoolOptions, PoolType, TasksQueueOptions } from './pools/pool' -export { WorkerTypes } from './pools/worker' +export { type WorkerNodeEventDetail, WorkerTypes } from './pools/worker' export type { ErrorHandler, EventLoopUtilizationMeasurementStatistics, @@ -24,9 +20,10 @@ export type { MeasurementStatistics, MessageHandler, OnlineHandler, - Task, + StrategyData, TaskStatistics, WorkerInfo, + WorkerNodeOptions, WorkerType, WorkerUsage } from './pools/worker' @@ -46,25 +43,32 @@ export type { } 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, type ThreadPoolOptions } from './pools/thread/fixed' +export { FixedThreadPool } from './pools/thread/fixed' export type { AbstractWorker } from './worker/abstract-worker' export { ClusterWorker } from './worker/cluster-worker' export { ThreadWorker } from './worker/thread-worker' export { KillBehaviors } from './worker/worker-options' -export type { KillBehavior, WorkerOptions } from './worker/worker-options' export type { + KillBehavior, + KillHandler, + WorkerOptions +} from './worker/worker-options' +export type { + TaskAsyncFunction, + TaskFunction, + TaskFunctionOperationResult, TaskFunctions, - WorkerAsyncFunction, - WorkerFunction, - WorkerSyncFunction -} from './worker/worker-functions' + TaskSyncFunction +} from './worker/task-functions' export type { MessageValue, PromiseResponseWrapper, - TaskError, + Task, TaskPerformance, - WorkerStatistics + WorkerError, + WorkerStatistics, + Writable } from './utility-types' export type { CircularArray } from './circular-array' -export type { Queue } from './queue' +export type { Deque, Node } from './deque' export { availableParallelism } from './utils'