X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Findex.ts;h=67f64f0b3ca91bdb853aafffa4b38fd47955a46a;hb=be71219a2e687e8a46a167503df4f5620807db0b;hp=54c352fc9f4f4b527201b4ef30198cd1c89e5c28;hpb=658b9aa08266ed9a8ae3c0fc947d237fa2674f09;p=poolifier.git diff --git a/src/index.ts b/src/index.ts index 54c352fc..67f64f0b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -16,6 +16,8 @@ export type { } from './pools/pool' export { WorkerTypes } from './pools/worker' export type { + BackPressureCallback, + EmptyQueueCallback, ErrorHandler, EventLoopUtilizationMeasurementStatistics, ExitHandler, @@ -24,7 +26,6 @@ export type { MeasurementStatistics, MessageHandler, OnlineHandler, - Task, TaskStatistics, WorkerInfo, WorkerType, @@ -51,20 +52,26 @@ 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, + WorkerOptions, + KillHandler +} from './worker/worker-options' +export type { + TaskAsyncFunction, + TaskFunction, TaskFunctions, - WorkerAsyncFunction, - WorkerFunction, - WorkerSyncFunction -} from './worker/worker-functions' + TaskSyncFunction +} from './worker/task-functions' export type { MessageValue, PromiseResponseWrapper, + Task, TaskError, TaskPerformance, - WorkerStatistics + 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'