From c11be5eddc7229e4b77105ed27e93697b65d0146 Mon Sep 17 00:00:00 2001 From: Documentation Bot Date: Sat, 23 Sep 2023 12:12:45 +0000 Subject: [PATCH] docs: generate documentation --- docs/classes/AbstractPool.html | 198 +++++++++--------- docs/classes/AbstractWorker.html | 90 ++++---- docs/classes/CircularArray.html | 28 +-- docs/classes/ClusterWorker.html | 68 +++--- docs/classes/Deque.html | 38 ++-- docs/classes/DynamicClusterPool.html | 108 +++++----- docs/classes/DynamicThreadPool.html | 108 +++++----- docs/classes/FixedClusterPool.html | 108 +++++----- docs/classes/FixedThreadPool.html | 108 +++++----- docs/classes/Node.html | 16 +- docs/classes/PoolEmitter.html | 64 +++--- docs/classes/ThreadWorker.html | 70 +++---- docs/classes/WorkerChoiceStrategyContext.html | 32 +-- docs/functions/availableParallelism.html | 8 +- docs/index.html | 8 +- docs/interfaces/ClusterPoolOptions.html | 34 +-- ...tLoopUtilizationMeasurementStatistics.html | 14 +- docs/interfaces/IPool.html | 40 ++-- docs/interfaces/IWorker.html | 16 +- docs/interfaces/IWorkerChoiceStrategy.html | 25 +-- docs/interfaces/IWorkerNode.html | 46 ++-- docs/interfaces/MeasurementOptions.html | 10 +- docs/interfaces/MeasurementStatistics.html | 20 +- .../MeasurementStatisticsRequirements.html | 14 +- docs/interfaces/MessageValue.html | 44 ++-- docs/interfaces/PoolInfo.html | 50 ++--- docs/interfaces/PoolOptions.html | 30 +-- docs/interfaces/PromiseResponseWrapper.html | 14 +- docs/interfaces/StrategyData.html | 10 +- docs/interfaces/StrategyPolicy.html | 12 +- docs/interfaces/Task.html | 20 +- .../TaskFunctionOperationResult.html | 12 +- docs/interfaces/TaskPerformance.html | 16 +- docs/interfaces/TaskStatistics.html | 20 +- .../TaskStatisticsRequirements.html | 14 +- docs/interfaces/TasksQueueOptions.html | 16 +- docs/interfaces/ThreadPoolOptions.html | 32 +-- .../WorkerChoiceStrategyOptions.html | 20 +- docs/interfaces/WorkerError.html | 14 +- docs/interfaces/WorkerInfo.html | 18 +- docs/interfaces/WorkerOptions.html | 16 +- docs/interfaces/WorkerStatistics.html | 12 +- docs/interfaces/WorkerUsage.html | 16 +- docs/types/ErrorHandler.html | 8 +- docs/types/ExitHandler.html | 8 +- docs/types/KillBehavior.html | 8 +- docs/types/KillHandler.html | 8 +- docs/types/Measurement.html | 8 +- docs/types/MessageHandler.html | 8 +- docs/types/OnlineHandler.html | 8 +- docs/types/PoolEvent.html | 8 +- docs/types/PoolType.html | 8 +- docs/types/TaskAsyncFunction.html | 8 +- docs/types/TaskFunction.html | 8 +- docs/types/TaskFunctions.html | 8 +- docs/types/TaskSyncFunction.html | 8 +- docs/types/WorkerChoiceStrategy.html | 8 +- docs/types/WorkerNodeEventCallback.html | 8 +- docs/types/WorkerType.html | 8 +- docs/types/Writable.html | 8 +- docs/variables/KillBehaviors.html | 8 +- docs/variables/Measurements.html | 8 +- docs/variables/PoolEvents.html | 8 +- docs/variables/PoolTypes.html | 8 +- docs/variables/WorkerChoiceStrategies.html | 8 +- docs/variables/WorkerTypes.html | 8 +- 66 files changed, 921 insertions(+), 920 deletions(-) diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html index 905e085b..2ce0d073 100644 --- a/docs/classes/AbstractPool.html +++ b/docs/classes/AbstractPool.html @@ -1,4 +1,4 @@ -AbstractPool | poolifier - v2.7.1
+AbstractPool | poolifier - v2.7.2
  • Preparing search index...
  • -
  • The search index is not available
poolifier - v2.7.1
+
  • The search index is not available
  • poolifier - v2.7.2
    @@ -49,7 +49,7 @@
    • IPool<Worker, Data, Response>
    +
  • Defined in src/pools/abstract-pool.ts:64
  • @@ -201,7 +201,7 @@

    Returns AbstractPool<Worker, Data, Response>

    +
  • Defined in src/pools/abstract-pool.ts:126
  • Properties

    @@ -222,7 +222,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:73
  • filePath: string
    @@ -230,7 +230,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:128
  • max?: number
    @@ -238,7 +238,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:97
  • numberOfWorkers: number
    @@ -246,7 +246,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:127
  • opts: PoolOptions<Worker>
    @@ -254,7 +254,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:129
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    @@ -267,7 +267,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:82
  • startTimestamp: number
    @@ -275,7 +275,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:117
  • started: boolean
    @@ -283,7 +283,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:109
  • starting: boolean
    @@ -291,7 +291,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:113
  • taskFunctions: Map<string, TaskFunction<Data, Response>>
    @@ -303,7 +303,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:104
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -311,7 +311,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:88
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -320,7 +320,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:70
  • Accessors

    @@ -334,7 +334,7 @@

    Returns boolean

    +
  • Defined in src/pools/abstract-pool.ts:654
  • +
  • Defined in src/pools/abstract-pool.ts:645
  • +
  • Defined in src/pools/abstract-pool.ts:265
  • +
  • Defined in src/pools/abstract-pool.ts:478
  • +
  • Defined in src/pools/abstract-pool.ts:471
  • +
  • Defined in src/pools/abstract-pool.ts:423
  • +
  • Defined in src/pools/abstract-pool.ts:461
  • +
  • Defined in src/pools/abstract-pool.ts:440
  • +
  • Defined in src/pools/abstract-pool.ts:466
  • Methods

    @@ -459,7 +459,7 @@ If a task function with the same name already exists, it will be overwritten.

    +
  • Defined in src/pools/abstract-pool.ts:790
  • +
  • Defined in src/pools/abstract-pool.ts:1587
  • +
  • Defined in src/pools/abstract-pool.ts:1026
  • +
  • Defined in src/pools/abstract-pool.ts:1337
  • +
  • Defined in src/pools/abstract-pool.ts:996
  • Returns TasksQueueOptions

    +
  • Defined in src/pools/abstract-pool.ts:594
  • +
  • Defined in src/pools/abstract-pool.ts:1562
  • +
  • Defined in src/pools/abstract-pool.ts:1550
  • +
  • Defined in src/pools/abstract-pool.ts:1556
  • +
  • Defined in src/pools/abstract-pool.ts:488
    • @@ -622,7 +622,7 @@ Can be overridden.

      numberOfWorkers: number

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:170
    • @@ -635,7 +635,7 @@ Can be overridden.

      opts: PoolOptions<Worker>

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:188
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:217
  • +
  • Defined in src/pools/abstract-pool.ts:1153
  • +
  • Defined in src/pools/abstract-pool.ts:1243
  • +
  • Defined in src/pools/abstract-pool.ts:1199
  • +
  • Defined in src/pools/abstract-pool.ts:1192
    • @@ -710,7 +710,7 @@ Can be overridden.

      name: string

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:849
    • @@ -723,7 +723,7 @@ Can be overridden.

      workerNodeKey: number

    Returns undefined | Task<Data>

    +
  • Defined in src/pools/abstract-pool.ts:1652
  • +
  • Defined in src/pools/abstract-pool.ts:1324
  • +
  • Defined in src/pools/abstract-pool.ts:934
  • +
  • Defined in src/pools/abstract-pool.ts:972
  • +
  • Defined in src/pools/abstract-pool.ts:559
    • @@ -834,7 +834,7 @@ Can be overridden.

      task: Task<Data>

    Returns number

    +
  • Defined in src/pools/abstract-pool.ts:1646
  • +
  • Defined in src/pools/abstract-pool.ts:864
  • +
  • Defined in src/pools/abstract-pool.ts:1640
    • @@ -902,7 +902,7 @@ Can be overridden.

      workerNodeKey: number

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1660
  • +
  • Defined in src/pools/abstract-pool.ts:1670
  • +
  • Defined in src/pools/abstract-pool.ts:1576
  • +
  • Defined in src/pools/abstract-pool.ts:507
  • +
  • Defined in src/pools/abstract-pool.ts:519
    • @@ -983,7 +983,7 @@ Can be overridden.

      message: MessageValue<Response, unknown>

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1522
    • @@ -996,7 +996,7 @@ Can be overridden.

      message: MessageValue<Response, unknown>

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1506
  • +
  • Defined in src/pools/abstract-pool.ts:1625
  • +
  • Defined in src/pools/abstract-pool.ts:777
  • +
  • Defined in src/pools/abstract-pool.ts:1618
  • +
  • Defined in src/pools/abstract-pool.ts:661
  • +
  • Defined in src/pools/abstract-pool.ts:987
  • +
  • Defined in src/pools/abstract-pool.ts:829
    • @@ -1095,7 +1095,7 @@ Can be overridden.

      workerNodeKey: number

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1380
  • +
  • Defined in src/pools/abstract-pool.ts:1311
  • +
  • Defined in src/pools/abstract-pool.ts:1298
  • +
  • Defined in src/pools/abstract-pool.ts:813
  • +
  • Defined in src/pools/abstract-pool.ts:1609
    • @@ -1228,7 +1228,7 @@ Can be overridden.

      workerNodeKey: number

    Returns Promise<void>

    +
  • Defined in src/pools/abstract-pool.ts:944
  • +
  • Defined in src/pools/abstract-pool.ts:1361
  • +
  • Defined in src/pools/abstract-pool.ts:1368
    • @@ -1281,7 +1281,7 @@ Can be overridden.

      message: MessageValue<Data, unknown>

    Returns Promise<boolean>

    +
  • Defined in src/pools/abstract-pool.ts:680
    • @@ -1294,7 +1294,7 @@ Can be overridden.

      message: MessageValue<Data, unknown>

    Returns Promise<boolean>

    +
  • Defined in src/pools/abstract-pool.ts:721
  • +
  • Defined in src/pools/abstract-pool.ts:1181
  • +
  • Defined in src/pools/abstract-pool.ts:842
  • +
  • Defined in src/pools/abstract-pool.ts:614
  • +
  • Defined in src/pools/abstract-pool.ts:573
    • @@ -1385,7 +1385,7 @@ Can be overridden.

      size: number

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:608
  • +
  • Defined in src/pools/abstract-pool.ts:627
  • +
  • Defined in src/pools/abstract-pool.ts:526
  • +
  • Defined in src/pools/abstract-pool.ts:545
  • +
  • Defined in src/pools/abstract-pool.ts:980
  • +
  • Defined in src/pools/abstract-pool.ts:1170
    • @@ -1475,7 +1475,7 @@ Can be overridden.

      workerNodeKey: number

    Returns boolean

    +
  • Defined in src/pools/abstract-pool.ts:855
  • +
  • Defined in src/pools/abstract-pool.ts:1059
  • +
  • Defined in src/pools/abstract-pool.ts:918
    • @@ -1520,7 +1520,7 @@ Can be overridden.

      workerId: number

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1420
    • @@ -1533,7 +1533,7 @@ Can be overridden.

      workerNodeKey: number

    Returns number

    +
  • Defined in src/pools/abstract-pool.ts:1656
    • @@ -1546,7 +1546,7 @@ Can be overridden.

      workerId: number

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1448
  • +
  • Defined in src/pools/abstract-pool.ts:621
  • +
  • Defined in src/pools/abstract-pool.ts:634
    • @@ -1577,7 +1577,7 @@ Can be overridden.

      message: MessageValue<Response, unknown>

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1113
    • @@ -1592,7 +1592,7 @@ Can be overridden.

      message: MessageValue<Response, unknown>

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1086
    • @@ -1607,7 +1607,7 @@ Can be overridden.

      message: MessageValue<Response, unknown>

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1068
    • @@ -1622,7 +1622,7 @@ Can be overridden.

      taskName: string

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1401
    • @@ -1637,7 +1637,7 @@ Can be overridden.

      task: Task<Data>

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1100
    • @@ -1664,7 +1664,7 @@ Can be overridden.

    +
  • Defined in src/pools/abstract-pool.ts:1488
  • @@ -47,7 +47,7 @@
  • ClusterWorker
  • ThreadWorker
  • +
  • Defined in src/worker/abstract-worker.ts:55
  • @@ -153,7 +153,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:89
  • Properties

    @@ -163,7 +163,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:79
  • id: number
    @@ -171,7 +171,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:63
  • isMain: boolean
    @@ -179,7 +179,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:91
  • lastTaskTimestamp: number
    @@ -187,7 +187,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:71
  • mainWorker: MainWorker
    @@ -195,7 +195,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:92
  • opts: WorkerOptions = DEFAULT_WORKER_OPTIONS
    @@ -203,7 +203,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:94
  • statistics: WorkerStatistics
    @@ -211,7 +211,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:75
  • taskFunctions: Map<string, TaskFunction<Data, Response>>
    @@ -219,7 +219,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:67
  • Methods

    @@ -247,7 +247,7 @@ If a task function with the same name already exists, it is replaced.

    +
  • Defined in src/worker/abstract-worker.ts:179
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:307
  • Returns TaskPerformance

    +
  • Defined in src/worker/abstract-worker.ts:587
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:284
  • +
  • Defined in src/worker/abstract-worker.ts:439
  • +
  • Defined in src/worker/abstract-worker.ts:405
  • +
  • Defined in src/worker/abstract-worker.ts:611
  • +
  • Defined in src/worker/abstract-worker.ts:118
  • Returns void

    +
  • Defined in src/worker/abstract-worker.ts:108
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:303
  • Returns TaskPerformance

    +
  • Defined in src/worker/abstract-worker.ts:596
  • +
  • Defined in src/worker/abstract-worker.ts:454
  • +
  • Defined in src/worker/abstract-worker.ts:485
  • +
  • Defined in src/worker/abstract-worker.ts:371
  • +
  • Defined in src/worker/abstract-worker.ts:299
  • Returns void

    +
  • Defined in src/worker/abstract-worker.ts:326
  • +
  • Defined in src/worker/abstract-worker.ts:162
  • +
  • Defined in src/worker/abstract-worker.ts:243
  • +
  • Defined in src/worker/abstract-worker.ts:306
  • +
  • Defined in src/worker/abstract-worker.ts:214
  • +
  • Defined in src/worker/abstract-worker.ts:494
  • +
  • Defined in src/worker/abstract-worker.ts:555
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:295
  • +
  • Defined in src/worker/abstract-worker.ts:521
  • +
  • Defined in src/worker/abstract-worker.ts:473
  • +
  • Defined in src/worker/abstract-worker.ts:466
  • +
  • Defined in src/worker/abstract-worker.ts:270
  • +
  • Defined in src/worker/abstract-worker.ts:418
  • +
  • Defined in src/worker/abstract-worker.ts:429
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:312
  • +
  • Defined in src/worker/abstract-worker.ts:617
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:278
  • @@ -31,7 +31,7 @@
    • CircularArray
    +
  • Defined in src/circular-array.ts:10
  • @@ -113,7 +113,7 @@

    Returns CircularArray<T>

    +
  • Defined in src/circular-array.ts:13
  • Properties

    @@ -153,7 +153,7 @@ when they will be absent when used in a 'with' statement.

    size: number
    +
  • Defined in src/circular-array.ts:11
  • [species]: ArrayConstructor

    Returns void

    +
  • Defined in src/circular-array.ts:100
    • @@ -222,7 +222,7 @@ when they will be absent when used in a 'with' statement.

      Inherit Doc

    +
  • Defined in src/circular-array.ts:41
  • +
  • Defined in src/circular-array.ts:92
  • +
  • Defined in src/circular-array.ts:96
  • +
  • Defined in src/circular-array.ts:23
  • Returns void

    +
  • Defined in src/circular-array.ts:80
  • +
  • Defined in src/circular-array.ts:56
  • +
  • Defined in src/circular-array.ts:32
  • @@ -47,7 +47,7 @@ but the minimum number of workers will be guaranteed.

    • ClusterWorker
    +
  • Defined in src/worker/cluster-worker.ts:21
  • @@ -128,7 +128,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/cluster-worker.ts:31
  • Properties

    @@ -139,7 +139,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:79
  • isMain: boolean
    @@ -148,7 +148,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:91
  • lastTaskTimestamp: number
    @@ -157,7 +157,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:71
  • opts: WorkerOptions = DEFAULT_WORKER_OPTIONS
    @@ -166,7 +166,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:94
  • statistics: WorkerStatistics
    @@ -175,7 +175,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:75
  • taskFunctions: Map<string, TaskFunction<Data, Response>>
    @@ -184,7 +184,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:67
  • Accessors

    @@ -198,7 +198,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/cluster-worker.ts:63
  • Methods

    @@ -227,7 +227,7 @@ If a task function with the same name already exists, it is replaced.

    +
  • Defined in src/worker/abstract-worker.ts:179
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:307
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:284
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:303
  • +
  • Defined in src/worker/abstract-worker.ts:454
  • +
  • Defined in src/worker/abstract-worker.ts:485
  • +
  • Defined in src/worker/abstract-worker.ts:371
  • +
  • Defined in src/worker/cluster-worker.ts:45
  • +
  • Defined in src/worker/abstract-worker.ts:326
  • +
  • Defined in src/worker/abstract-worker.ts:162
  • +
  • Defined in src/worker/abstract-worker.ts:243
  • +
  • Defined in src/worker/abstract-worker.ts:306
  • +
  • Defined in src/worker/abstract-worker.ts:214
  • +
  • Defined in src/worker/abstract-worker.ts:494
  • +
  • Defined in src/worker/abstract-worker.ts:555
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:295
  • +
  • Defined in src/worker/abstract-worker.ts:521
  • +
  • Defined in src/worker/abstract-worker.ts:473
  • +
  • Defined in src/worker/cluster-worker.ts:68
  • +
  • Defined in src/worker/abstract-worker.ts:270
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:312
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:278
  • @@ -33,7 +33,7 @@ Implemented with a doubly linked list.

    • Deque
    +
  • Defined in src/deque.ts:26
  • @@ -77,14 +77,14 @@ Implemented with a doubly linked list.

    T

    Returns Deque<T>

    +
  • Defined in src/deque.ts:34
  • Properties

    head?: Node<T>
    +
  • Defined in src/deque.ts:27
  • maxSize: number
    @@ -92,7 +92,7 @@ Implemented with a doubly linked list.

    +
  • Defined in src/deque.ts:32
  • size: number
    @@ -100,12 +100,12 @@ Implemented with a doubly linked list.

    +
  • Defined in src/deque.ts:30
  • tail?: Node<T>
    +
  • Defined in src/deque.ts:28
  • Methods

    @@ -121,7 +121,7 @@ Implemented with a doubly linked list.

    See

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols

    +
  • Defined in src/deque.ts:144
  • +
  • Defined in src/deque.ts:170
  • +
  • Defined in src/deque.ts:131
  • +
  • Defined in src/deque.ts:194
  • +
  • Defined in src/deque.ts:116
  • +
  • Defined in src/deque.ts:124
  • +
  • Defined in src/deque.ts:77
  • +
  • Defined in src/deque.ts:44
  • +
  • Defined in src/deque.ts:97
  • +
  • Defined in src/deque.ts:61
  • @@ -45,7 +45,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    • DynamicClusterPool
    +
  • Defined in src/pools/cluster/dynamic.ts:16
  • @@ -156,7 +156,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:28
  • Properties

    @@ -177,7 +177,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:73
  • filePath: string
    @@ -186,7 +186,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:128
  • max: number
    @@ -195,7 +195,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:30
  • numberOfWorkers: number
    @@ -204,7 +204,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:127
  • @@ -213,7 +213,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/fixed.ts:47
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    @@ -227,7 +227,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:82
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -236,7 +236,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:88
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -245,7 +245,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:70
  • Accessors

    @@ -260,7 +260,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:44
    • @@ -273,7 +273,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:645
    • @@ -285,7 +285,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:265
    • @@ -297,7 +297,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:478
    • @@ -309,7 +309,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:471
    • @@ -321,7 +321,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:423
    • @@ -334,7 +334,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:39
    • @@ -347,7 +347,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:440
    • @@ -359,7 +359,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/fixed.ts:134
  • Methods

    @@ -392,7 +392,7 @@ If a task function with the same name already exists, it will be overwritten.

    +
  • Defined in src/pools/abstract-pool.ts:790
  • +
  • Defined in src/pools/abstract-pool.ts:1026
  • +
  • Defined in src/pools/abstract-pool.ts:1337
  • +
  • Defined in src/pools/abstract-pool.ts:996
  • +
  • Defined in src/pools/abstract-pool.ts:1243
  • +
  • Defined in src/pools/abstract-pool.ts:1199
  • +
  • Defined in src/pools/cluster/fixed.ts:124
  • +
  • Defined in src/pools/cluster/fixed.ts:116
  • +
  • Defined in src/pools/abstract-pool.ts:934
  • +
  • Defined in src/pools/cluster/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:559
  • +
  • Defined in src/pools/abstract-pool.ts:864
  • +
  • Defined in src/pools/abstract-pool.ts:1660
  • +
  • Defined in src/pools/abstract-pool.ts:1576
  • +
  • Defined in src/pools/abstract-pool.ts:777
  • +
  • Defined in src/pools/abstract-pool.ts:1618
  • +
  • Defined in src/pools/abstract-pool.ts:661
  • +
  • Defined in src/pools/cluster/fixed.ts:58
  • +
  • Defined in src/pools/abstract-pool.ts:829
  • +
  • Defined in src/pools/cluster/fixed.ts:108
  • +
  • Defined in src/pools/cluster/fixed.ts:100
  • +
  • Defined in src/pools/abstract-pool.ts:813
  • +
  • Defined in src/pools/abstract-pool.ts:944
  • +
  • Defined in src/pools/cluster/fixed.ts:93
  • +
  • Defined in src/pools/cluster/fixed.ts:82
  • +
  • Defined in src/pools/abstract-pool.ts:842
  • +
  • Defined in src/pools/abstract-pool.ts:573
  • +
  • Defined in src/pools/abstract-pool.ts:526
  • +
  • Defined in src/pools/abstract-pool.ts:545
  • +
  • Defined in src/pools/cluster/fixed.ts:53
  • +
  • Defined in src/pools/abstract-pool.ts:918
  • +
  • Defined in src/pools/abstract-pool.ts:1488
  • @@ -45,7 +45,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    • DynamicThreadPool
    +
  • Defined in src/pools/thread/dynamic.ts:16
  • @@ -156,7 +156,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:28
  • Properties

    @@ -177,7 +177,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:73
  • filePath: string
    @@ -186,7 +186,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:128
  • max: number
    @@ -195,7 +195,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:30
  • numberOfWorkers: number
    @@ -204,7 +204,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:127
  • @@ -213,7 +213,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/fixed.ts:49
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    @@ -227,7 +227,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:82
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -236,7 +236,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:88
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -245,7 +245,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:70
  • Accessors

    @@ -260,7 +260,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:44
    • @@ -273,7 +273,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:645
    • @@ -285,7 +285,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:265
    • @@ -297,7 +297,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:478
    • @@ -309,7 +309,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:471
    • @@ -321,7 +321,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:423
    • @@ -334,7 +334,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:39
    • @@ -347,7 +347,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:440
    • @@ -359,7 +359,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/fixed.ts:149
  • Methods

    @@ -392,7 +392,7 @@ If a task function with the same name already exists, it will be overwritten.

    +
  • Defined in src/pools/abstract-pool.ts:790
  • +
  • Defined in src/pools/abstract-pool.ts:1026
  • +
  • Defined in src/pools/abstract-pool.ts:1337
  • +
  • Defined in src/pools/abstract-pool.ts:996
  • +
  • Defined in src/pools/abstract-pool.ts:1243
  • +
  • Defined in src/pools/abstract-pool.ts:1199
  • +
  • Defined in src/pools/thread/fixed.ts:136
  • +
  • Defined in src/pools/thread/fixed.ts:126
  • +
  • Defined in src/pools/abstract-pool.ts:934
  • +
  • Defined in src/pools/thread/fixed.ts:60
  • +
  • Defined in src/pools/abstract-pool.ts:559
  • +
  • Defined in src/pools/abstract-pool.ts:864
  • +
  • Defined in src/pools/abstract-pool.ts:1660
  • +
  • Defined in src/pools/abstract-pool.ts:1576
  • +
  • Defined in src/pools/abstract-pool.ts:777
  • +
  • Defined in src/pools/abstract-pool.ts:1618
  • +
  • Defined in src/pools/abstract-pool.ts:661
  • +
  • Defined in src/pools/thread/fixed.ts:55
  • +
  • Defined in src/pools/abstract-pool.ts:829
  • +
  • Defined in src/pools/thread/fixed.ts:116
  • +
  • Defined in src/pools/thread/fixed.ts:106
  • +
  • Defined in src/pools/abstract-pool.ts:813
  • +
  • Defined in src/pools/abstract-pool.ts:944
  • +
  • Defined in src/pools/thread/fixed.ts:91
  • +
  • Defined in src/pools/thread/fixed.ts:77
  • +
  • Defined in src/pools/abstract-pool.ts:842
  • +
  • Defined in src/pools/abstract-pool.ts:573
  • +
  • Defined in src/pools/abstract-pool.ts:526
  • +
  • Defined in src/pools/abstract-pool.ts:545
  • +
  • Defined in src/pools/abstract-pool.ts:980
  • +
  • Defined in src/pools/abstract-pool.ts:918
  • +
  • Defined in src/pools/abstract-pool.ts:1488
  • @@ -45,7 +45,7 @@ +
  • Defined in src/pools/cluster/fixed.ts:33
  • @@ -151,7 +151,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:44
  • Properties

    @@ -172,7 +172,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:73
  • filePath: string
    @@ -181,7 +181,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:128
  • max?: number
    @@ -190,7 +190,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:97
  • numberOfWorkers: number
    @@ -199,7 +199,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:127
  • @@ -208,7 +208,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:47
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    @@ -222,7 +222,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:82
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -231,7 +231,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:88
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -240,7 +240,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:70
  • Accessors

    @@ -255,7 +255,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:139
  • +
  • Defined in src/pools/abstract-pool.ts:645
  • +
  • Defined in src/pools/abstract-pool.ts:265
  • +
  • Defined in src/pools/abstract-pool.ts:478
  • +
  • Defined in src/pools/abstract-pool.ts:471
  • +
  • Defined in src/pools/abstract-pool.ts:423
  • +
  • Defined in src/pools/cluster/fixed.ts:129
  • +
  • Defined in src/pools/abstract-pool.ts:440
  • +
  • Defined in src/pools/cluster/fixed.ts:134
  • Methods

    @@ -387,7 +387,7 @@ If a task function with the same name already exists, it will be overwritten.

    +
  • Defined in src/pools/abstract-pool.ts:790
  • +
  • Defined in src/pools/abstract-pool.ts:1026
  • +
  • Defined in src/pools/abstract-pool.ts:1337
  • +
  • Defined in src/pools/abstract-pool.ts:996
  • +
  • Defined in src/pools/abstract-pool.ts:1243
  • +
  • Defined in src/pools/abstract-pool.ts:1199
  • +
  • Defined in src/pools/cluster/fixed.ts:124
  • +
  • Defined in src/pools/cluster/fixed.ts:116
  • +
  • Defined in src/pools/abstract-pool.ts:934
  • +
  • Defined in src/pools/cluster/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:559
  • +
  • Defined in src/pools/abstract-pool.ts:864
  • +
  • Defined in src/pools/abstract-pool.ts:1660
  • +
  • Defined in src/pools/abstract-pool.ts:1576
  • +
  • Defined in src/pools/abstract-pool.ts:777
  • +
  • Defined in src/pools/abstract-pool.ts:1618
  • +
  • Defined in src/pools/abstract-pool.ts:661
  • +
  • Defined in src/pools/cluster/fixed.ts:58
  • +
  • Defined in src/pools/abstract-pool.ts:829
  • +
  • Defined in src/pools/cluster/fixed.ts:108
  • +
  • Defined in src/pools/cluster/fixed.ts:100
  • +
  • Defined in src/pools/abstract-pool.ts:813
  • +
  • Defined in src/pools/abstract-pool.ts:944
  • +
  • Defined in src/pools/cluster/fixed.ts:93
  • +
  • Defined in src/pools/cluster/fixed.ts:82
  • +
  • Defined in src/pools/abstract-pool.ts:842
  • +
  • Defined in src/pools/abstract-pool.ts:573
  • +
  • Defined in src/pools/abstract-pool.ts:526
  • +
  • Defined in src/pools/abstract-pool.ts:545
  • +
  • Defined in src/pools/cluster/fixed.ts:53
  • +
  • Defined in src/pools/abstract-pool.ts:918
  • +
  • Defined in src/pools/abstract-pool.ts:1488
  • @@ -45,7 +45,7 @@ +
  • Defined in src/pools/thread/fixed.ts:35
  • @@ -151,7 +151,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:46
  • Properties

    @@ -172,7 +172,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:73
  • filePath: string
    @@ -181,7 +181,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:128
  • max?: number
    @@ -190,7 +190,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:97
  • numberOfWorkers: number
    @@ -199,7 +199,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:127
  • @@ -208,7 +208,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:49
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    @@ -222,7 +222,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:82
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -231,7 +231,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:88
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -240,7 +240,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:70
  • Accessors

    @@ -255,7 +255,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:154
  • +
  • Defined in src/pools/abstract-pool.ts:645
  • +
  • Defined in src/pools/abstract-pool.ts:265
  • +
  • Defined in src/pools/abstract-pool.ts:478
  • +
  • Defined in src/pools/abstract-pool.ts:471
  • +
  • Defined in src/pools/abstract-pool.ts:423
  • +
  • Defined in src/pools/thread/fixed.ts:144
  • +
  • Defined in src/pools/abstract-pool.ts:440
  • +
  • Defined in src/pools/thread/fixed.ts:149
  • Methods

    @@ -387,7 +387,7 @@ If a task function with the same name already exists, it will be overwritten.

    +
  • Defined in src/pools/abstract-pool.ts:790
  • +
  • Defined in src/pools/abstract-pool.ts:1026
  • +
  • Defined in src/pools/abstract-pool.ts:1337
  • +
  • Defined in src/pools/abstract-pool.ts:996
  • +
  • Defined in src/pools/abstract-pool.ts:1243
  • +
  • Defined in src/pools/abstract-pool.ts:1199
  • +
  • Defined in src/pools/thread/fixed.ts:136
  • +
  • Defined in src/pools/thread/fixed.ts:126
  • +
  • Defined in src/pools/abstract-pool.ts:934
  • +
  • Defined in src/pools/thread/fixed.ts:60
  • +
  • Defined in src/pools/abstract-pool.ts:559
  • +
  • Defined in src/pools/abstract-pool.ts:864
  • +
  • Defined in src/pools/abstract-pool.ts:1660
  • +
  • Defined in src/pools/abstract-pool.ts:1576
  • +
  • Defined in src/pools/abstract-pool.ts:777
  • +
  • Defined in src/pools/abstract-pool.ts:1618
  • +
  • Defined in src/pools/abstract-pool.ts:661
  • +
  • Defined in src/pools/thread/fixed.ts:55
  • +
  • Defined in src/pools/abstract-pool.ts:829
  • +
  • Defined in src/pools/thread/fixed.ts:116
  • +
  • Defined in src/pools/thread/fixed.ts:106
  • +
  • Defined in src/pools/abstract-pool.ts:813
  • +
  • Defined in src/pools/abstract-pool.ts:944
  • +
  • Defined in src/pools/thread/fixed.ts:91
  • +
  • Defined in src/pools/thread/fixed.ts:77
  • +
  • Defined in src/pools/abstract-pool.ts:842
  • +
  • Defined in src/pools/abstract-pool.ts:573
  • +
  • Defined in src/pools/abstract-pool.ts:526
  • +
  • Defined in src/pools/abstract-pool.ts:545
  • +
  • Defined in src/pools/abstract-pool.ts:980
  • +
  • Defined in src/pools/abstract-pool.ts:918
  • +
  • Defined in src/pools/abstract-pool.ts:1488
  • @@ -32,7 +32,7 @@
    • Node
    +
  • Defined in src/deque.ts:9
  • @@ -67,24 +67,24 @@
    data: T

    Returns Node<T>

    +
  • Defined in src/deque.ts:14
  • Properties

    data: T
    +
  • Defined in src/deque.ts:10
  • next?: Node<T>
    +
  • Defined in src/deque.ts:11
  • prev?: Node<T>
    +
  • Defined in src/deque.ts:12
  • @@ -26,7 +26,7 @@
    • PoolEmitter
    +
  • Defined in src/pools/pool.ts:40
  • @@ -83,7 +83,7 @@

    Returns PoolEmitter

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:109
  • Properties

    @@ -97,7 +97,7 @@
    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:390
  • captureRejections: boolean
    @@ -109,7 +109,7 @@
    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:397
  • defaultMaxListeners: number
    @@ -140,7 +140,7 @@ Its name property is set to 'MaxListenersExceededWarning&
    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:434
  • errorMonitor: typeof errorMonitor
    @@ -153,7 +153,7 @@ regular 'error' listener is installed.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:383
  • Methods

    @@ -187,7 +187,7 @@ regular 'error' listener is installed.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:454
    • @@ -212,7 +212,7 @@ to each.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:716
    • @@ -229,7 +229,7 @@ listeners. The values in the array are strings or Symbols.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:779
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:631
    • @@ -273,7 +273,7 @@ in the list of the listeners of the event.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:725
    • @@ -294,7 +294,7 @@ in the list of the listeners of the event.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:644
    • @@ -326,7 +326,7 @@ in the list of the listeners of the event.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:604
    • @@ -374,7 +374,7 @@ event listener to the beginning of the listeners array.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:486
    • @@ -420,7 +420,7 @@ event listener to the beginning of the listeners array.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:516
    • @@ -464,7 +464,7 @@ times.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:743
    • @@ -506,7 +506,7 @@ listener is removed, and then invoked.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:759
    • @@ -528,7 +528,7 @@ including any wrappers (such as those created by .once()).

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:675
    • @@ -551,7 +551,7 @@ component or module (e.g. sockets or file streams).

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:615
    • @@ -605,7 +605,7 @@ recently added instance. In the example the once('ping')lis
    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:599
    • @@ -628,7 +628,7 @@ modified for this specific EventEmitter instance. The value can be
    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:625
    • @@ -672,7 +672,7 @@ not prevent the listener from running.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:375
    • @@ -699,7 +699,7 @@ event target. This is useful for debugging and diagnostic purposes.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:296
    • @@ -725,7 +725,7 @@ the max set, the EventTarget will print a warning.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:325
    • @@ -756,7 +756,7 @@ the max set, the EventTarget will print a warning.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:268
    • @@ -791,7 +791,7 @@ composed of the emitted event arguments.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:250
    • @@ -829,7 +829,7 @@ special handling:

      +
    • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:189
  • @@ -844,7 +844,7 @@ special handling:

    Returns Promise<any[]>

  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:190
    • @@ -869,7 +869,7 @@ special handling:

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/events.d.ts:340
  • @@ -47,7 +47,7 @@ but the minimum number of workers will be guaranteed.

    • ThreadWorker
    +
  • Defined in src/worker/thread-worker.ts:26
  • @@ -129,7 +129,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/thread-worker.ts:40
  • Properties

    @@ -140,7 +140,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:79
  • isMain: boolean
    @@ -149,7 +149,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:91
  • lastTaskTimestamp: number
    @@ -158,7 +158,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:71
  • opts: WorkerOptions = DEFAULT_WORKER_OPTIONS
    @@ -167,7 +167,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:94
  • port: MessagePort
    @@ -175,7 +175,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/thread-worker.ts:33
  • statistics: WorkerStatistics
    @@ -184,7 +184,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:75
  • taskFunctions: Map<string, TaskFunction<Data, Response>>
    @@ -193,7 +193,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:67
  • Accessors

    @@ -207,7 +207,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/thread-worker.ts:84
  • Methods

    @@ -236,7 +236,7 @@ If a task function with the same name already exists, it is replaced.

    +
  • Defined in src/worker/abstract-worker.ts:179
    • @@ -247,7 +247,7 @@ If a task function with the same name already exists, it is replaced.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:307
    • @@ -274,7 +274,7 @@ If a task function with the same name already exists, it is replaced.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:284
    • @@ -290,7 +290,7 @@ never be called.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:303
  • +
  • Defined in src/worker/abstract-worker.ts:454
  • +
  • Defined in src/worker/thread-worker.ts:94
  • +
  • Defined in src/worker/thread-worker.ts:77
  • +
  • Defined in src/worker/thread-worker.ts:54
  • +
  • Defined in src/worker/abstract-worker.ts:326
  • +
  • Defined in src/worker/abstract-worker.ts:162
  • +
  • Defined in src/worker/abstract-worker.ts:243
  • +
  • Defined in src/worker/abstract-worker.ts:306
  • +
  • Defined in src/worker/abstract-worker.ts:214
  • +
  • Defined in src/worker/abstract-worker.ts:494
  • +
  • Defined in src/worker/abstract-worker.ts:555
    • @@ -555,7 +555,7 @@ then restore the original execution context.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:295
  • +
  • Defined in src/worker/abstract-worker.ts:521
  • +
  • Defined in src/worker/abstract-worker.ts:473
  • +
  • Defined in src/worker/thread-worker.ts:89
  • +
  • Defined in src/worker/abstract-worker.ts:270
    • @@ -644,7 +644,7 @@ then restore the original execution context.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:312
    • @@ -680,7 +680,7 @@ then restore the original execution context.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.3/node_modules/@types/node/async_hooks.d.ts:278
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:40
  • workerChoiceStrategies: Map<"ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN", IWorkerChoiceStrategy>
    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:32
  • workerChoiceStrategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN
    @@ -139,7 +139,7 @@
    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:51
  • Methods

    @@ -155,7 +155,7 @@

    Throws

    https://nodejs.org/api/errors.html#class-error If after configured retries the worker node key is null or undefined .

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:173
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:119
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:132
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:200
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:213
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:145
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:159
  • @@ -26,7 +26,7 @@ Always returns a value greater than zero.

    +
  • Defined in src/utils.ts:51
  • -

    poolifier - v2.7.1

    +

    poolifier - v2.7.2

    Index

    @@ -111,7 +111,7 @@

    Theme

    @@ -26,7 +26,7 @@
    • ClusterPoolOptions
    +
  • Defined in src/pools/cluster/fixed.ts:10
  • @@ -61,7 +61,7 @@
    +
  • Defined in src/pools/pool.ts:186
  • enableTasksQueue?: boolean
    @@ -73,7 +73,7 @@
    +
  • Defined in src/pools/pool.ts:192
  • env?: Record<string, unknown>
    @@ -83,7 +83,7 @@

    See

    https://nodejs.org/api/cluster.html#cluster_cluster_fork_env

    +
  • Defined in src/pools/cluster/fixed.ts:16
  • errorHandler?: ErrorHandler<Worker>
    @@ -94,7 +94,7 @@
    +
  • Defined in src/pools/pool.ts:154
  • exitHandler?: ExitHandler<Worker>
    @@ -105,7 +105,7 @@
    +
  • Defined in src/pools/pool.ts:160
  • messageHandler?: MessageHandler<Worker>
    @@ -116,7 +116,7 @@
    +
  • Defined in src/pools/pool.ts:148
  • onlineHandler?: OnlineHandler<Worker>
    @@ -127,7 +127,7 @@
    +
  • Defined in src/pools/pool.ts:142
  • restartWorkerOnError?: boolean
    @@ -136,7 +136,7 @@
    +
  • Defined in src/pools/pool.ts:180
  • settings?: ClusterSettings
    @@ -146,7 +146,7 @@

    See

    https://nodejs.org/api/cluster.html#cluster_cluster_settings

    +
  • Defined in src/pools/cluster/fixed.ts:22
  • startWorkers?: boolean
    @@ -158,7 +158,7 @@
    +
  • Defined in src/pools/pool.ts:166
  • tasksQueueOptions?: TasksQueueOptions
    @@ -167,7 +167,7 @@
    +
  • Defined in src/pools/pool.ts:196
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    @@ -179,7 +179,7 @@
    +
  • Defined in src/pools/pool.ts:172
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -188,7 +188,7 @@
    +
  • Defined in src/pools/pool.ts:176
  • @@ -24,7 +24,7 @@
    • EventLoopUtilizationMeasurementStatistics
    +
  • Defined in src/pools/worker.ts:71
  • @@ -42,17 +42,17 @@
    +
  • Defined in src/pools/worker.ts:73
  • +
  • Defined in src/pools/worker.ts:72
  • utilization?: number
    +
  • Defined in src/pools/worker.ts:74
  • @@ -46,7 +46,7 @@ +
  • Defined in src/pools/pool.ts:206
  • @@ -107,7 +107,7 @@ If a task function with the same name already exists, it will be overwritten.

    Throws

    https://nodejs.org/api/errors.html#class-typeerror If the fn parameter is not a function.

    +
  • Defined in src/pools/pool.ts:281
  • destroy: (() => Promise<void>)
    @@ -123,7 +123,7 @@ If a task function with the same name already exists, it will be overwritten.

    Returns Promise<void>
    +
  • Defined in src/pools/pool.ts:263
  • emitter?: PoolEmitter
    @@ -141,7 +141,7 @@ If a task function with the same name already exists, it will be overwritten.

    +
  • Defined in src/pools/pool.ts:242
  • enableTasksQueue: ((enable, tasksQueueOptions?) => void)
    @@ -170,7 +170,7 @@ If a task function with the same name already exists, it will be overwritten.

    Returns void
    +
  • Defined in src/pools/pool.ts:329
  • execute: ((data?, name?, transferList?) => Promise<Response>)
    @@ -205,7 +205,7 @@ If a task function with the same name already exists, it will be overwritten.

    +
  • Defined in src/pools/pool.ts:251
  • hasTaskFunction: ((name) => boolean)
    @@ -230,7 +230,7 @@ If a task function with the same name already exists, it will be overwritten.

    +
  • Defined in src/pools/pool.ts:270
  • hasWorkerNodeBackPressure: ((workerNodeKey) => boolean)
    @@ -255,7 +255,7 @@ If a task function with the same name already exists, it will be overwritten.

    +
  • Defined in src/pools/pool.ts:228
  • info: PoolInfo
    @@ -263,7 +263,7 @@ If a task function with the same name already exists, it will be overwritten.

    +
  • Defined in src/pools/pool.ts:214
  • listTaskFunctionNames: (() => string[])
    @@ -280,7 +280,7 @@ If a task function with the same name already exists, it will be overwritten.

    +
  • Defined in src/pools/pool.ts:297
  • removeTaskFunction: ((name) => Promise<boolean>)
    @@ -305,7 +305,7 @@ If a task function with the same name already exists, it will be overwritten.

    +
  • Defined in src/pools/pool.ts:291
  • setDefaultTaskFunction: ((name) => Promise<boolean>)
    @@ -330,7 +330,7 @@ If a task function with the same name already exists, it will be overwritten.

    +
  • Defined in src/pools/pool.ts:304
  • setTasksQueueOptions: ((tasksQueueOptions) => void)
    @@ -354,7 +354,7 @@ If a task function with the same name already exists, it will be overwritten.

    Returns void
    +
  • Defined in src/pools/pool.ts:338
  • setWorkerChoiceStrategy: ((workerChoiceStrategy, workerChoiceStrategyOptions?) => void)
    @@ -383,7 +383,7 @@ If a task function with the same name already exists, it will be overwritten.

    Returns void
    +
  • Defined in src/pools/pool.ts:311
  • setWorkerChoiceStrategyOptions: ((workerChoiceStrategyOptions) => void)
    @@ -407,7 +407,7 @@ If a task function with the same name already exists, it will be overwritten.

    Returns void
    +
  • Defined in src/pools/pool.ts:320
  • start: (() => void)
    @@ -423,7 +423,7 @@ If a task function with the same name already exists, it will be overwritten.

    Returns void
    +
  • Defined in src/pools/pool.ts:259
  • workerNodes: IWorkerNode<Worker, Data>[]
    @@ -431,7 +431,7 @@ If a task function with the same name already exists, it will be overwritten.

    +
  • Defined in src/pools/pool.ts:220
  • @@ -24,7 +24,7 @@
    • IWorker
    +
  • Defined in src/pools/worker.ts:186
  • @@ -46,7 +46,7 @@
    +
  • Defined in src/pools/worker.ts:190
  • on: ((event, handler) => void) & ((event, handler) => void) & ((event, handler) => void) & ((event, handler) => void)
    @@ -118,7 +118,7 @@

    Param

    The event handler.

    +
  • Defined in src/pools/worker.ts:198
  • once: ((event, handler) => void)
    @@ -147,12 +147,12 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:208
  • threadId?: number
    +
  • Defined in src/pools/worker.ts:191
  • @@ -24,7 +24,7 @@
    • IWorkerChoiceStrategy
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:168
  • @@ -53,13 +53,14 @@
  • (): undefined | number
  • Chooses a worker node in the pool and returns its key. -If the worker node is not eligible, undefined is returned.

    +If no worker nodes are not eligible, undefined is returned. +If undefined is returned, the caller retry.

    Returns undefined | number

    The worker node key or undefined.

  • +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:196
  • remove: ((workerNodeKey) => boolean)
    @@ -84,7 +85,7 @@ If the worker node is not eligible, undefined is returned.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:203
  • reset: (() => boolean)
    @@ -101,7 +102,7 @@ If the worker node is not eligible, undefined is returned.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:182
  • setOptions: ((opts) => void)
    @@ -125,7 +126,7 @@ If the worker node is not eligible, undefined is returned.

    Returns void

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:209
  • strategyPolicy: StrategyPolicy
    @@ -133,7 +134,7 @@ If the worker node is not eligible, undefined is returned.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:172
  • taskStatisticsRequirements: TaskStatisticsRequirements
    @@ -141,7 +142,7 @@ If the worker node is not eligible, undefined is returned.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:176
  • update: ((workerNodeKey) => boolean)
    @@ -163,7 +164,7 @@ If the worker node is not eligible, undefined is returned.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:188
  • @@ -37,7 +37,7 @@
    • IWorkerNode
    +
  • Defined in src/pools/worker.ts:226
  • @@ -82,7 +82,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:296
  • closeChannel: (() => void)
    @@ -98,7 +98,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:310
  • deleteTaskFunctionWorkerUsage: ((name) => boolean)
    @@ -123,7 +123,7 @@
    +
  • Defined in src/pools/worker.ts:324
  • dequeueTask: (() => undefined | Task<Data>)
    @@ -140,7 +140,7 @@
    +
  • Defined in src/pools/worker.ts:286
  • enqueueTask: ((task) => number)
    @@ -165,7 +165,7 @@
    +
  • Defined in src/pools/worker.ts:273
  • getTaskFunctionWorkerUsage: ((name) => undefined | WorkerUsage)
    @@ -190,7 +190,7 @@
    +
  • Defined in src/pools/worker.ts:317
  • hasBackPressure: (() => boolean)
    @@ -207,7 +207,7 @@
    +
  • Defined in src/pools/worker.ts:302
  • @@ -215,7 +215,7 @@
    +
  • Defined in src/pools/worker.ts:234
  • messageChannel?: MessageChannel
    @@ -223,7 +223,7 @@
    +
  • Defined in src/pools/worker.ts:247
  • onBackPressure?: WorkerNodeEventCallback
    @@ -231,7 +231,7 @@
    +
  • Defined in src/pools/worker.ts:256
  • @@ -239,7 +239,7 @@
    +
  • Defined in src/pools/worker.ts:260
  • popTask: (() => undefined | Task<Data>)
    @@ -256,7 +256,7 @@
    +
  • Defined in src/pools/worker.ts:292
  • resetUsage: (() => void)
    @@ -272,7 +272,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:306
  • strategyData?: StrategyData
    @@ -281,7 +281,7 @@ This is used to store data that is specific to the worker choice strategy.

    +
  • Defined in src/pools/worker.ts:243
  • tasksQueueBackPressureSize: number
    @@ -290,7 +290,7 @@ This is the number of tasks that can be enqueued before the worker node has back
    +
  • Defined in src/pools/worker.ts:252
  • tasksQueueSize: (() => number)
    @@ -307,7 +307,7 @@ This is the number of tasks that can be enqueued before the worker node has back
    +
  • Defined in src/pools/worker.ts:266
  • unshiftTask: ((task) => number)
    @@ -332,7 +332,7 @@ This is the number of tasks that can be enqueued before the worker node has back
    +
  • Defined in src/pools/worker.ts:280
  • @@ -340,7 +340,7 @@ This is the number of tasks that can be enqueued before the worker node has back
    +
  • Defined in src/pools/worker.ts:238
  • worker: Worker
    @@ -348,7 +348,7 @@ This is the number of tasks that can be enqueued before the worker node has back
    +
  • Defined in src/pools/worker.ts:230
  • +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:63
  • @@ -24,7 +24,7 @@
    • MeasurementStatistics
    +
  • Defined in src/pools/worker.ts:39
  • @@ -48,7 +48,7 @@
    +
  • Defined in src/pools/worker.ts:43
  • average?: number
    @@ -56,7 +56,7 @@
    +
  • Defined in src/pools/worker.ts:55
  • history: CircularArray<number>
    @@ -64,7 +64,7 @@
    +
  • Defined in src/pools/worker.ts:63
  • maximum?: number
    @@ -72,7 +72,7 @@
    +
  • Defined in src/pools/worker.ts:51
  • median?: number
    @@ -80,7 +80,7 @@
    +
  • Defined in src/pools/worker.ts:59
  • minimum?: number
    @@ -88,7 +88,7 @@
    +
  • Defined in src/pools/worker.ts:47
  • +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:120
  • median: boolean
    @@ -61,7 +61,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:124
  • @@ -39,7 +39,7 @@
    • MessageValue
    +
  • Defined in src/utility-types.ts:105
  • @@ -75,7 +75,7 @@
    +
  • Defined in src/utility-types.ts:153
  • data?: Data
    @@ -84,7 +84,7 @@
    +
  • Defined in src/utility-types.ts:83
  • kill?: true | "success" | "SOFT" | "HARD" | "failure"
    @@ -92,7 +92,7 @@
    +
  • Defined in src/utility-types.ts:110
  • name?: string
    @@ -101,7 +101,7 @@
    +
  • Defined in src/utility-types.ts:79
  • port?: MessagePort
    @@ -109,7 +109,7 @@
    +
  • Defined in src/utility-types.ts:157
  • ready?: boolean
    @@ -117,7 +117,7 @@
    +
  • Defined in src/utility-types.ts:149
  • statistics?: WorkerStatistics
    @@ -125,7 +125,7 @@
    +
  • Defined in src/utility-types.ts:145
  • taskFunction?: string
    @@ -133,7 +133,7 @@
    +
  • Defined in src/utility-types.ts:133
  • taskFunctionName?: string
    @@ -141,7 +141,7 @@
    +
  • Defined in src/utility-types.ts:137
  • taskFunctionNames?: string[]
    @@ -149,7 +149,7 @@
    +
  • Defined in src/utility-types.ts:141
  • taskFunctionOperation?: "add" | "default" | "remove"
    @@ -162,7 +162,7 @@
    +
  • Defined in src/utility-types.ts:125
  • taskFunctionOperationStatus?: boolean
    @@ -170,7 +170,7 @@
    +
  • Defined in src/utility-types.ts:129
  • taskId?: string
    @@ -179,7 +179,7 @@
    +
  • Defined in src/utility-types.ts:95
  • taskPerformance?: TaskPerformance
    @@ -187,7 +187,7 @@
    +
  • Defined in src/utility-types.ts:118
  • timestamp?: number
    @@ -196,7 +196,7 @@
    +
  • Defined in src/utility-types.ts:91
  • transferList?: TransferListItem[]
    @@ -205,7 +205,7 @@
    +
  • Defined in src/utility-types.ts:87
  • workerError?: WorkerError<ErrorData>
    @@ -213,7 +213,7 @@
    +
  • Defined in src/utility-types.ts:114
  • workerId?: number
    @@ -222,7 +222,7 @@
    +
  • Defined in src/utility-types.ts:75
  • @@ -24,7 +24,7 @@
    • PoolInfo
    +
  • Defined in src/pools/pool.ts:63
  • @@ -60,7 +60,7 @@
    backPressure?: boolean
    +
  • Defined in src/pools/pool.ts:84
  • busyWorkerNodes: number
    @@ -68,22 +68,22 @@
    +
  • Defined in src/pools/pool.ts:79
  • executedTasks: number
    +
  • Defined in src/pools/pool.ts:80
  • executingTasks: number
    +
  • Defined in src/pools/pool.ts:81
  • failedTasks: number
    +
  • Defined in src/pools/pool.ts:86
  • idleWorkerNodes: number
    @@ -91,32 +91,32 @@
    +
  • Defined in src/pools/pool.ts:77
  • maxQueuedTasks?: number
    +
  • Defined in src/pools/pool.ts:83
  • maxSize: number
    +
  • Defined in src/pools/pool.ts:71
  • minSize: number
    +
  • Defined in src/pools/pool.ts:70
  • queuedTasks?: number
    +
  • Defined in src/pools/pool.ts:82
  • ready: boolean
    +
  • Defined in src/pools/pool.ts:68
  • runTime?: {
        average?: number;
        maximum: number;
        median?: number;
        minimum: number;
    }
    @@ -132,27 +132,27 @@
  • Readonly minimum: number
  • +
  • Defined in src/pools/pool.ts:87
  • started: boolean
    +
  • Defined in src/pools/pool.ts:67
  • stolenTasks?: number
    +
  • Defined in src/pools/pool.ts:85
  • strategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    +
  • Defined in src/pools/pool.ts:69
  • type: "fixed" | "dynamic"
    +
  • Defined in src/pools/pool.ts:65
  • utilization?: number
    @@ -160,12 +160,12 @@
    +
  • Defined in src/pools/pool.ts:73
  • version: string
    +
  • Defined in src/pools/pool.ts:64
  • waitTime?: {
        average?: number;
        maximum: number;
        median?: number;
        minimum: number;
    }
    @@ -181,12 +181,12 @@
  • Readonly minimum: number
  • +
  • Defined in src/pools/pool.ts:93
  • worker: "thread" | "cluster"
    +
  • Defined in src/pools/pool.ts:66
  • workerNodes: number
    @@ -194,7 +194,7 @@
    +
  • Defined in src/pools/pool.ts:75
  • @@ -35,7 +35,7 @@
  • ClusterPoolOptions
  • ThreadPoolOptions
  • +
  • Defined in src/pools/pool.ts:136
  • @@ -67,7 +67,7 @@
    +
  • Defined in src/pools/pool.ts:186
  • enableTasksQueue?: boolean
    @@ -78,7 +78,7 @@
    +
  • Defined in src/pools/pool.ts:192
  • errorHandler?: ErrorHandler<Worker>
    @@ -88,7 +88,7 @@

    Default Value

    () => {}

    +
  • Defined in src/pools/pool.ts:154
  • exitHandler?: ExitHandler<Worker>
    @@ -98,7 +98,7 @@

    Default Value

    () => {}

    +
  • Defined in src/pools/pool.ts:160
  • messageHandler?: MessageHandler<Worker>
    @@ -108,7 +108,7 @@

    Default Value

    () => {}

    +
  • Defined in src/pools/pool.ts:148
  • onlineHandler?: OnlineHandler<Worker>
    @@ -118,7 +118,7 @@

    Default Value

    () => {}

    +
  • Defined in src/pools/pool.ts:142
  • restartWorkerOnError?: boolean
    @@ -126,7 +126,7 @@
    +
  • Defined in src/pools/pool.ts:180
  • startWorkers?: boolean
    @@ -137,7 +137,7 @@
    +
  • Defined in src/pools/pool.ts:166
  • tasksQueueOptions?: TasksQueueOptions
    @@ -145,7 +145,7 @@
    +
  • Defined in src/pools/pool.ts:196
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    @@ -156,7 +156,7 @@
    +
  • Defined in src/pools/pool.ts:172
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -164,7 +164,7 @@
    +
  • Defined in src/pools/pool.ts:176
  • @@ -32,7 +32,7 @@
    • PromiseResponseWrapper
    +
  • Defined in src/utility-types.ts:166
  • @@ -66,7 +66,7 @@

    Returns void

    +
  • Defined in src/utility-types.ts:174
  • resolve: ((value) => void)
    @@ -87,7 +87,7 @@

    Returns void

    +
  • Defined in src/utility-types.ts:170
  • workerNodeKey: number
    @@ -95,7 +95,7 @@
    +
  • Defined in src/utility-types.ts:178
  • @@ -24,7 +24,7 @@
    • StrategyData
    +
  • Defined in src/pools/worker.ts:179
  • @@ -40,7 +40,7 @@
    virtualTaskEndTimestamp?: number
    +
  • Defined in src/pools/worker.ts:180
  • +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:160
  • dynamicWorkerUsage: boolean
    @@ -52,7 +52,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:156
  • @@ -34,7 +34,7 @@ +
  • Defined in src/utility-types.ts:71
  • @@ -58,7 +58,7 @@
    +
  • Defined in src/utility-types.ts:83
  • name?: string
    @@ -66,7 +66,7 @@
    +
  • Defined in src/utility-types.ts:79
  • taskId?: string
    @@ -74,7 +74,7 @@
    +
  • Defined in src/utility-types.ts:95
  • timestamp?: number
    @@ -82,7 +82,7 @@
    +
  • Defined in src/utility-types.ts:91
  • transferList?: TransferListItem[]
    @@ -90,7 +90,7 @@
    +
  • Defined in src/utility-types.ts:87
  • workerId?: number
    @@ -98,7 +98,7 @@
    +
  • Defined in src/utility-types.ts:75
  • @@ -24,7 +24,7 @@
    • TaskFunctionOperationResult
    +
  • Defined in src/worker/task-functions.ts:50
  • @@ -41,12 +41,12 @@
    error?: Error
    +
  • Defined in src/worker/task-functions.ts:52
  • status: boolean
    +
  • Defined in src/worker/task-functions.ts:51
  • @@ -24,7 +24,7 @@
    • TaskPerformance
    +
  • Defined in src/utility-types.ts:30
  • @@ -46,7 +46,7 @@
    +
  • Defined in src/utility-types.ts:46
  • name: string
    @@ -54,7 +54,7 @@
    +
  • Defined in src/utility-types.ts:34
  • runTime?: number
    @@ -62,7 +62,7 @@
    +
  • Defined in src/utility-types.ts:42
  • timestamp: number
    @@ -70,7 +70,7 @@
    +
  • Defined in src/utility-types.ts:38
  • @@ -24,7 +24,7 @@
    • TaskStatistics
    +
  • Defined in src/pools/worker.ts:82
  • @@ -48,7 +48,7 @@
    +
  • Defined in src/pools/worker.ts:86
  • executing: number
    @@ -56,7 +56,7 @@
    +
  • Defined in src/pools/worker.ts:90
  • failed: number
    @@ -64,7 +64,7 @@
    +
  • Defined in src/pools/worker.ts:106
  • maxQueued?: number
    @@ -72,7 +72,7 @@
    +
  • Defined in src/pools/worker.ts:98
  • queued: number
    @@ -80,7 +80,7 @@
    +
  • Defined in src/pools/worker.ts:94
  • stolen: number
    @@ -88,7 +88,7 @@
    +
  • Defined in src/pools/worker.ts:102
  • @@ -24,7 +24,7 @@
    • TaskStatisticsRequirements
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:132
  • @@ -45,7 +45,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:144
  • @@ -53,7 +53,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:136
  • @@ -61,7 +61,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:140
  • @@ -24,7 +24,7 @@
    • TasksQueueOptions
    +
  • Defined in src/pools/pool.ts:104
  • @@ -49,7 +49,7 @@
    +
  • Defined in src/pools/pool.ts:116
  • size?: number
    @@ -60,7 +60,7 @@
    +
  • Defined in src/pools/pool.ts:110
  • taskStealing?: boolean
    @@ -71,7 +71,7 @@
    +
  • Defined in src/pools/pool.ts:122
  • tasksStealingOnBackPressure?: boolean
    @@ -82,7 +82,7 @@
    +
  • Defined in src/pools/pool.ts:128
  • @@ -26,7 +26,7 @@
    • ThreadPoolOptions
    +
  • Defined in src/pools/thread/fixed.ts:18
  • @@ -60,7 +60,7 @@
    +
  • Defined in src/pools/pool.ts:186
  • enableTasksQueue?: boolean
    @@ -72,7 +72,7 @@
    +
  • Defined in src/pools/pool.ts:192
  • errorHandler?: ErrorHandler<Worker>
    @@ -83,7 +83,7 @@
    +
  • Defined in src/pools/pool.ts:154
  • exitHandler?: ExitHandler<Worker>
    @@ -94,7 +94,7 @@
    +
  • Defined in src/pools/pool.ts:160
  • messageHandler?: MessageHandler<Worker>
    @@ -105,7 +105,7 @@
    +
  • Defined in src/pools/pool.ts:148
  • onlineHandler?: OnlineHandler<Worker>
    @@ -116,7 +116,7 @@
    +
  • Defined in src/pools/pool.ts:142
  • restartWorkerOnError?: boolean
    @@ -125,7 +125,7 @@
    +
  • Defined in src/pools/pool.ts:180
  • startWorkers?: boolean
    @@ -137,7 +137,7 @@
    +
  • Defined in src/pools/pool.ts:166
  • tasksQueueOptions?: TasksQueueOptions
    @@ -146,7 +146,7 @@
    +
  • Defined in src/pools/pool.ts:196
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    @@ -158,7 +158,7 @@
    +
  • Defined in src/pools/pool.ts:172
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -167,7 +167,7 @@
    +
  • Defined in src/pools/pool.ts:176
  • workerOptions?: WorkerOptions
    @@ -177,7 +177,7 @@

    See

    https://nodejs.org/api/worker_threads.html#new-workerfilename-options

    +
  • Defined in src/pools/thread/fixed.ts:24
  • @@ -24,7 +24,7 @@
    • WorkerChoiceStrategyOptions
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:69
  • @@ -51,7 +51,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:97
  • measurement?: "runTime" | "waitTime" | "elu"
    @@ -59,7 +59,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:79
  • retries?: number
    @@ -70,7 +70,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:75
  • @@ -81,7 +81,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:85
  • @@ -92,7 +92,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:91
  • weights?: Record<number, number>
    @@ -104,7 +104,7 @@ A weight is tasks maximum execution time in milliseconds for a worker node.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:104
  • @@ -32,7 +32,7 @@
    • WorkerError
    +
  • Defined in src/utility-types.ts:10
  • @@ -53,7 +53,7 @@
    +
  • Defined in src/utility-types.ts:22
  • message: string
    @@ -61,7 +61,7 @@
    +
  • Defined in src/utility-types.ts:18
  • name: string
    @@ -69,7 +69,7 @@
    +
  • Defined in src/utility-types.ts:14
  • @@ -24,7 +24,7 @@
    • WorkerInfo
    +
  • Defined in src/pools/worker.ts:127
  • @@ -47,7 +47,7 @@
    +
  • Defined in src/pools/worker.ts:139
  • id: undefined | number
    @@ -55,7 +55,7 @@
    +
  • Defined in src/pools/worker.ts:131
  • ready: boolean
    @@ -63,7 +63,7 @@
    +
  • Defined in src/pools/worker.ts:143
  • taskFunctionNames?: string[]
    @@ -71,7 +71,7 @@
    +
  • Defined in src/pools/worker.ts:147
  • type: "thread" | "cluster"
    @@ -79,7 +79,7 @@
    +
  • Defined in src/pools/worker.ts:135
  • @@ -24,7 +24,7 @@
    • WorkerOptions
    +
  • Defined in src/worker/worker-options.ts:28
  • @@ -51,7 +51,7 @@

    Deprecated

    This option will be removed in the next major version.

    +
  • Defined in src/worker/worker-options.ts:65
  • killBehavior?: "SOFT" | "HARD"
    @@ -67,7 +67,7 @@
    +
  • Defined in src/worker/worker-options.ts:39
  • killHandler?: KillHandler
    @@ -77,7 +77,7 @@

    Default Value

    () => {}

    +
  • Defined in src/worker/worker-options.ts:58
  • maxInactiveTime?: number
    @@ -95,7 +95,7 @@ when this timeout expires your tasks is interrupted before completion and remove
    +
  • Defined in src/worker/worker-options.ts:52
  • @@ -24,7 +24,7 @@
    • WorkerStatistics
    +
  • Defined in src/utility-types.ts:54
  • @@ -44,7 +44,7 @@
    +
  • Defined in src/utility-types.ts:62
  • runTime: boolean
    @@ -52,7 +52,7 @@
    +
  • Defined in src/utility-types.ts:58
  • @@ -24,7 +24,7 @@
    • WorkerUsage
    +
  • Defined in src/pools/worker.ts:155
  • @@ -46,7 +46,7 @@
    +
  • Defined in src/pools/worker.ts:171
  • @@ -54,7 +54,7 @@
    +
  • Defined in src/pools/worker.ts:163
  • @@ -62,7 +62,7 @@
    +
  • Defined in src/pools/worker.ts:159
  • @@ -70,7 +70,7 @@
    +
  • Defined in src/pools/worker.ts:167
  • @@ -40,7 +40,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:21
  • @@ -40,7 +40,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:29
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/worker/worker-options.ts:18
  • @@ -28,7 +28,7 @@

    Returns void | Promise<void>

    +
  • Defined in src/worker/worker-options.ts:23
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:54
  • @@ -40,7 +40,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:13
  • @@ -38,7 +38,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:8
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/pool.ts:58
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/pool.ts:35
  • @@ -47,7 +47,7 @@ This function must return a promise.

    Returns Promise<Response>

    +
  • Defined in src/worker/task-functions.ts:18
  • @@ -34,7 +34,7 @@ This function can be synchronous or asynchronous.

    +
  • Defined in src/worker/task-functions.ts:29
  • @@ -36,7 +36,7 @@ The value is the function itself.

    +
  • Defined in src/worker/task-functions.ts:42
  • @@ -46,7 +46,7 @@

    Returns Response

    +
  • Defined in src/worker/task-functions.ts:7
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:40
  • @@ -36,7 +36,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:217
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/worker.ts:120
  • @@ -22,7 +22,7 @@
  • T

  • +
  • Defined in src/utility-types.ts:181
  • @@ -33,7 +33,7 @@
    +
  • Defined in src/worker/worker-options.ts:4
  • @@ -29,7 +29,7 @@
    Readonly waitTime: "waitTime"
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:45
  • @@ -37,7 +37,7 @@
    Readonly taskError: "taskError"
    +
  • Defined in src/pools/pool.ts:45
  • @@ -33,7 +33,7 @@
    +
  • Defined in src/pools/pool.ts:21
  • @@ -58,7 +58,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:4
  • @@ -27,7 +27,7 @@
    Readonly thread: "thread"
    +
  • Defined in src/pools/worker.ts:112