From 3abeb14de6a5845deeb027ccc69c3feeec8f4a3a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 7 Jul 2023 06:45:07 +0000 Subject: [PATCH] chore: generate documentation --- docs/classes/AbstractPool.html | 148 +++++++++--------- docs/classes/AbstractWorker.html | 54 +++---- docs/classes/CircularArray.html | 28 ++-- docs/classes/ClusterWorker.html | 40 ++--- docs/classes/DynamicClusterPool.html | 78 ++++----- docs/classes/DynamicThreadPool.html | 78 ++++----- docs/classes/FixedClusterPool.html | 76 ++++----- docs/classes/FixedThreadPool.html | 76 ++++----- docs/classes/PoolEmitter.html | 8 +- docs/classes/Queue.html | 26 +-- docs/classes/ThreadWorker.html | 40 ++--- docs/classes/WorkerChoiceStrategyContext.html | 28 ++-- docs/functions/availableParallelism.html | 8 +- docs/index.html | 8 +- docs/interfaces/ClusterPoolOptions.html | 32 ++-- ...tLoopUtilizationMeasurementStatistics.html | 14 +- docs/interfaces/IPool.html | 26 +-- docs/interfaces/IWorker.html | 16 +- docs/interfaces/IWorkerChoiceStrategy.html | 22 +-- docs/interfaces/MeasurementOptions.html | 10 +- docs/interfaces/MeasurementStatistics.html | 20 +-- .../MeasurementStatisticsRequirements.html | 14 +- docs/interfaces/MessageValue.html | 30 ++-- docs/interfaces/PoolInfo.html | 40 ++--- docs/interfaces/PoolOptions.html | 28 ++-- docs/interfaces/PromiseResponseWrapper.html | 14 +- docs/interfaces/StrategyPolicy.html | 10 +- docs/interfaces/Task.html | 16 +- docs/interfaces/TaskError.html | 14 +- docs/interfaces/TaskPerformance.html | 14 +- docs/interfaces/TaskStatistics.html | 18 +-- .../TaskStatisticsRequirements.html | 14 +- docs/interfaces/TasksQueueOptions.html | 10 +- docs/interfaces/ThreadPoolOptions.html | 30 ++-- .../WorkerChoiceStrategyOptions.html | 18 +-- docs/interfaces/WorkerInfo.html | 14 +- docs/interfaces/WorkerNode.html | 16 +- docs/interfaces/WorkerOptions.html | 14 +- 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/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/TaskFunctions.html | 8 +- docs/types/WorkerAsyncFunction.html | 8 +- docs/types/WorkerChoiceStrategy.html | 8 +- docs/types/WorkerFunction.html | 8 +- docs/types/WorkerSyncFunction.html | 8 +- docs/types/WorkerType.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 +- 60 files changed, 669 insertions(+), 669 deletions(-) diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html index dd00795b..05e60478 100644 --- a/docs/classes/AbstractPool.html +++ b/docs/classes/AbstractPool.html @@ -1,4 +1,4 @@ -AbstractPool | poolifier - v2.6.8
+AbstractPool | poolifier - v2.6.9
  • Preparing search index...
  • -
  • The search index is not available
poolifier - v2.6.8
+
  • The search index is not available
  • poolifier - v2.6.9
    @@ -49,7 +49,7 @@
    • IPool<Worker, Data, Response>
    +
  • Defined in src/pools/abstract-pool.ts:51
  • @@ -176,7 +176,7 @@

    Returns AbstractPool<Worker, Data, Response>

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

    @@ -194,7 +194,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:60
  • filePath: string
    @@ -202,7 +202,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:98
  • numberOfWorkers: number
    @@ -210,7 +210,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:97
  • opts: PoolOptions<Worker>
    @@ -218,7 +218,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:99
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -231,7 +231,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:70
  • startTimestamp: number
    @@ -239,7 +239,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:87
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -247,7 +247,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:78
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -256,7 +256,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:57
  • Accessors

    @@ -270,7 +270,7 @@

    Returns boolean

    +
  • Defined in src/pools/abstract-pool.ts:530
  • +
  • Defined in src/pools/abstract-pool.ts:521
  • +
  • Defined in src/pools/abstract-pool.ts:252
  • +
  • Defined in src/pools/abstract-pool.ts:427
  • +
  • Defined in src/pools/abstract-pool.ts:422
  • +
  • Defined in src/pools/abstract-pool.ts:412
  • +
  • Defined in src/pools/abstract-pool.ts:391
  • +
  • Defined in src/pools/abstract-pool.ts:417
  • Methods

    @@ -378,7 +378,7 @@ Can be overridden.

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:641
  • +
  • Defined in src/pools/abstract-pool.ts:869
  • +
  • Defined in src/pools/abstract-pool.ts:625
  • Returns TasksQueueOptions

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

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

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

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

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

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

    +
  • Defined in src/pools/abstract-pool.ts:199
  • +
  • Defined in src/pools/abstract-pool.ts:811
  • +
  • Defined in src/pools/abstract-pool.ts:947
  • +
  • Defined in src/pools/abstract-pool.ts:879
  • +
  • Defined in src/pools/abstract-pool.ts:861
  • Returns undefined | Task<Data>

    +
  • Defined in src/pools/abstract-pool.ts:1141
  • +
  • Defined in src/pools/abstract-pool.ts:580
  • +
  • Defined in src/pools/abstract-pool.ts:601
  • +
  • Defined in src/pools/abstract-pool.ts:486
  • Returns number

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

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

    +
  • Defined in src/pools/abstract-pool.ts:1153
  • +
  • Defined in src/pools/abstract-pool.ts:1163
  • Returns WorkerInfo

    +
  • Defined in src/pools/abstract-pool.ts:1223
  • Returns WorkerUsage

    +
  • Defined in src/pools/abstract-pool.ts:1181
  • +
  • Defined in src/pools/abstract-pool.ts:435
  • +
  • Defined in src/pools/abstract-pool.ts:1087
  • +
  • Defined in src/pools/abstract-pool.ts:1057
  • +
  • Defined in src/pools/abstract-pool.ts:446
  • Returns void

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

    +
  • Defined in src/pools/abstract-pool.ts:986
  • +
  • Defined in src/pools/abstract-pool.ts:537
  • +
  • Defined in src/pools/abstract-pool.ts:616
  • +
  • Defined in src/pools/abstract-pool.ts:1067
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:914
  • +
  • Defined in src/pools/abstract-pool.ts:849
  • +
  • Defined in src/pools/abstract-pool.ts:1124
  • +
  • Defined in src/pools/abstract-pool.ts:838
  • +
  • Defined in src/pools/abstract-pool.ts:498
  • +
  • Defined in src/pools/abstract-pool.ts:453
  • +
  • Defined in src/pools/abstract-pool.ts:475
  • +
  • Defined in src/pools/abstract-pool.ts:1045
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1169
  • +
  • Defined in src/pools/abstract-pool.ts:609
  • +
  • Defined in src/pools/abstract-pool.ts:828
  • Returns number

    +
  • Defined in src/pools/abstract-pool.ts:1149
  • Returns number

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

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

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

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

    +
  • Defined in src/pools/abstract-pool.ts:702
  • +
  • Defined in src/pools/abstract-pool.ts:974
  • @@ -47,7 +47,7 @@
  • ClusterWorker
  • ThreadWorker
  • +
  • Defined in src/worker/abstract-worker.ts:34
  • @@ -141,7 +141,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:68
  • Properties

    @@ -151,7 +151,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:58
  • id: number
    @@ -159,7 +159,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:42
  • isMain: boolean
    @@ -167,7 +167,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:70
  • lastTaskTimestamp: number
    @@ -175,7 +175,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:50
  • mainWorker: MainWorker
    @@ -183,7 +183,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:74
  • opts: WorkerOptions = ...
    @@ -191,7 +191,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:75
  • statistics: WorkerStatistics
    @@ -199,7 +199,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:54
  • taskFunctions: Map<string, WorkerFunction<Data, Response>>
    @@ -207,7 +207,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:46
  • Methods

    @@ -228,7 +228,7 @@
  • Returns TaskPerformance

  • +
  • Defined in src/worker/abstract-worker.ts:313
  • +
  • Defined in src/worker/abstract-worker.ts:202
  • +
  • Defined in src/worker/abstract-worker.ts:336
  • +
  • Defined in src/worker/abstract-worker.ts:107
  • Returns void

    +
  • Defined in src/worker/abstract-worker.ts:95
  • Returns TaskPerformance

    +
  • Defined in src/worker/abstract-worker.ts:321
  • +
  • Defined in src/worker/abstract-worker.ts:183
  • +
  • Defined in src/worker/abstract-worker.ts:304
  • +
  • Defined in src/worker/abstract-worker.ts:217
  • +
  • Defined in src/worker/abstract-worker.ts:147
  • +
  • Defined in src/worker/abstract-worker.ts:264
  • +
  • Defined in src/worker/abstract-worker.ts:227
  • +
  • Defined in src/worker/abstract-worker.ts:195
  • +
  • Defined in src/worker/abstract-worker.ts:169
  • @@ -31,7 +31,7 @@
    • CircularArray
    +
  • Defined in src/circular-array.ts:8
  • @@ -113,7 +113,7 @@

    Returns CircularArray<T>

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

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

    size: number
    +
  • Defined in src/circular-array.ts:9
  • [species]: ArrayConstructor
    +
  • Defined in src/circular-array.ts:88
  • +
  • Defined in src/circular-array.ts:39
  • +
  • Defined in src/circular-array.ts:80
  • +
  • Defined in src/circular-array.ts:84
  • +
  • Defined in src/circular-array.ts:21
  • Returns void

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    +
  • Defined in src/worker/abstract-worker.ts:202
  • +
  • Defined in src/worker/abstract-worker.ts:183
  • +
  • Defined in src/worker/abstract-worker.ts:217
  • +
  • Defined in src/worker/abstract-worker.ts:147
  • +
  • Defined in src/worker/abstract-worker.ts:264
  • +
  • Defined in src/worker/abstract-worker.ts:227
  • +
  • Defined in src/worker/cluster-worker.ts:52
  • @@ -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:15
  • @@ -141,7 +141,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:27
  • Properties

    @@ -159,7 +159,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:60
  • filePath: string
    @@ -168,7 +168,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:98
  • max: number
    @@ -176,7 +176,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:29
  • numberOfWorkers: number
    @@ -185,7 +185,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:97
  • opts: ClusterPoolOptions = {}
    @@ -194,7 +194,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/fixed.ts:52
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -208,7 +208,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:70
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -217,7 +217,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:78
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -226,7 +226,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:57
  • Accessors

    @@ -241,7 +241,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:47
  • +
  • Defined in src/pools/abstract-pool.ts:521
  • +
  • Defined in src/pools/abstract-pool.ts:252
  • +
  • Defined in src/pools/cluster/dynamic.ts:42
  • +
  • Defined in src/pools/cluster/fixed.ts:97
  • +
  • Defined in src/pools/cluster/dynamic.ts:37
  • +
  • Defined in src/pools/abstract-pool.ts:391
  • +
  • Defined in src/pools/cluster/fixed.ts:92
  • Methods

    @@ -356,7 +356,7 @@ Can be overridden.

    +
  • Defined in src/pools/abstract-pool.ts:641
  • +
  • Defined in src/pools/abstract-pool.ts:869
  • +
  • Defined in src/pools/abstract-pool.ts:625
  • +
  • Defined in src/pools/abstract-pool.ts:947
  • +
  • Defined in src/pools/abstract-pool.ts:879
  • +
  • Defined in src/pools/cluster/fixed.ts:82
  • +
  • Defined in src/pools/abstract-pool.ts:580
  • +
  • Defined in src/pools/cluster/fixed.ts:68
  • +
  • Defined in src/pools/abstract-pool.ts:486
  • +
  • Defined in src/pools/abstract-pool.ts:546
  • +
  • Defined in src/pools/abstract-pool.ts:537
  • +
  • Defined in src/pools/cluster/fixed.ts:63
  • +
  • Defined in src/pools/cluster/fixed.ts:77
  • +
  • Defined in src/pools/abstract-pool.ts:498
  • +
  • Defined in src/pools/abstract-pool.ts:453
  • +
  • Defined in src/pools/abstract-pool.ts:475
  • +
  • Defined in src/pools/cluster/fixed.ts:58
  • +
  • Defined in src/pools/abstract-pool.ts:974
  • @@ -45,7 +45,7 @@ When the maximum number of threads is reached and workers are busy, an event is +
  • Defined in src/pools/thread/dynamic.ts:15
  • @@ -141,7 +141,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:27
  • Properties

    @@ -159,7 +159,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:60
  • filePath: string
    @@ -168,7 +168,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:98
  • max: number
    @@ -176,7 +176,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:29
  • numberOfWorkers: number
    @@ -185,7 +185,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:97
  • @@ -194,7 +194,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/fixed.ts:51
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -208,7 +208,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:70
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -217,7 +217,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:78
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -226,7 +226,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:57
  • Accessors

    @@ -241,7 +241,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:47
  • +
  • Defined in src/pools/abstract-pool.ts:521
  • +
  • Defined in src/pools/abstract-pool.ts:252
  • +
  • Defined in src/pools/thread/dynamic.ts:42
  • +
  • Defined in src/pools/thread/fixed.ts:91
  • +
  • Defined in src/pools/thread/dynamic.ts:37
  • +
  • Defined in src/pools/abstract-pool.ts:391
  • +
  • Defined in src/pools/thread/fixed.ts:86
  • Methods

    @@ -356,7 +356,7 @@ Can be overridden.

    +
  • Defined in src/pools/abstract-pool.ts:641
  • +
  • Defined in src/pools/abstract-pool.ts:869
  • +
  • Defined in src/pools/abstract-pool.ts:625
  • +
  • Defined in src/pools/abstract-pool.ts:947
  • +
  • Defined in src/pools/abstract-pool.ts:879
  • +
  • Defined in src/pools/thread/fixed.ts:73
  • +
  • Defined in src/pools/abstract-pool.ts:580
  • +
  • Defined in src/pools/thread/fixed.ts:62
  • +
  • Defined in src/pools/abstract-pool.ts:486
  • +
  • Defined in src/pools/abstract-pool.ts:546
  • +
  • Defined in src/pools/abstract-pool.ts:537
  • +
  • Defined in src/pools/thread/fixed.ts:57
  • +
  • Defined in src/pools/thread/fixed.ts:68
  • +
  • Defined in src/pools/abstract-pool.ts:498
  • +
  • Defined in src/pools/abstract-pool.ts:453
  • +
  • Defined in src/pools/abstract-pool.ts:475
  • +
  • Defined in src/pools/abstract-pool.ts:609
  • +
  • Defined in src/pools/abstract-pool.ts:974
  • @@ -45,7 +45,7 @@ +
  • Defined in src/pools/cluster/fixed.ts:38
  • @@ -135,7 +135,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:49
  • Properties

    @@ -153,7 +153,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:60
  • filePath: string
    @@ -162,7 +162,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:98
  • numberOfWorkers: number
    @@ -171,7 +171,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:97
  • @@ -180,7 +180,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:52
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -194,7 +194,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:70
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -203,7 +203,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:78
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -212,7 +212,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:57
  • Accessors

    @@ -227,7 +227,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:107
  • +
  • Defined in src/pools/abstract-pool.ts:521
  • +
  • Defined in src/pools/abstract-pool.ts:252
  • +
  • Defined in src/pools/cluster/fixed.ts:102
  • +
  • Defined in src/pools/cluster/fixed.ts:97
  • +
  • Defined in src/pools/cluster/fixed.ts:87
  • +
  • Defined in src/pools/abstract-pool.ts:391
  • +
  • Defined in src/pools/cluster/fixed.ts:92
  • Methods

    @@ -342,7 +342,7 @@ Can be overridden.

    +
  • Defined in src/pools/abstract-pool.ts:641
  • +
  • Defined in src/pools/abstract-pool.ts:869
  • +
  • Defined in src/pools/abstract-pool.ts:625
  • +
  • Defined in src/pools/abstract-pool.ts:947
  • +
  • Defined in src/pools/abstract-pool.ts:879
  • +
  • Defined in src/pools/cluster/fixed.ts:82
  • +
  • Defined in src/pools/abstract-pool.ts:580
  • +
  • Defined in src/pools/cluster/fixed.ts:68
  • +
  • Defined in src/pools/abstract-pool.ts:486
  • +
  • Defined in src/pools/abstract-pool.ts:546
  • +
  • Defined in src/pools/abstract-pool.ts:537
  • +
  • Defined in src/pools/cluster/fixed.ts:63
  • +
  • Defined in src/pools/cluster/fixed.ts:77
  • +
  • Defined in src/pools/abstract-pool.ts:498
  • +
  • Defined in src/pools/abstract-pool.ts:453
  • +
  • Defined in src/pools/abstract-pool.ts:475
  • +
  • Defined in src/pools/cluster/fixed.ts:58
  • +
  • Defined in src/pools/abstract-pool.ts:974
  • @@ -45,7 +45,7 @@ +
  • Defined in src/pools/thread/fixed.ts:37
  • @@ -135,7 +135,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:48
  • Properties

    @@ -153,7 +153,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:60
  • filePath: string
    @@ -162,7 +162,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:98
  • numberOfWorkers: number
    @@ -171,7 +171,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:97
  • @@ -180,7 +180,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:51
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -194,7 +194,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:70
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -203,7 +203,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:78
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -212,7 +212,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:57
  • Accessors

    @@ -227,7 +227,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:101
  • +
  • Defined in src/pools/abstract-pool.ts:521
  • +
  • Defined in src/pools/abstract-pool.ts:252
  • +
  • Defined in src/pools/thread/fixed.ts:96
  • +
  • Defined in src/pools/thread/fixed.ts:91
  • +
  • Defined in src/pools/thread/fixed.ts:81
  • +
  • Defined in src/pools/abstract-pool.ts:391
  • +
  • Defined in src/pools/thread/fixed.ts:86
  • Methods

    @@ -342,7 +342,7 @@ Can be overridden.

    +
  • Defined in src/pools/abstract-pool.ts:641
  • +
  • Defined in src/pools/abstract-pool.ts:869
  • +
  • Defined in src/pools/abstract-pool.ts:625
  • +
  • Defined in src/pools/abstract-pool.ts:947
  • +
  • Defined in src/pools/abstract-pool.ts:879
  • +
  • Defined in src/pools/thread/fixed.ts:73
  • +
  • Defined in src/pools/abstract-pool.ts:580
  • +
  • Defined in src/pools/thread/fixed.ts:62
  • +
  • Defined in src/pools/abstract-pool.ts:486
  • +
  • Defined in src/pools/abstract-pool.ts:546
  • +
  • Defined in src/pools/abstract-pool.ts:537
  • +
  • Defined in src/pools/thread/fixed.ts:57
  • +
  • Defined in src/pools/thread/fixed.ts:68
  • +
  • Defined in src/pools/abstract-pool.ts:498
  • +
  • Defined in src/pools/abstract-pool.ts:453
  • +
  • Defined in src/pools/abstract-pool.ts:475
  • +
  • Defined in src/pools/abstract-pool.ts:609
  • +
  • Defined in src/pools/abstract-pool.ts:974
  • @@ -26,7 +26,7 @@ +
  • Defined in src/pools/pool.ts:50
  • @@ -843,7 +843,7 @@ special handling:

  • once
  • setMaxListeners
  • @@ -32,7 +32,7 @@ +
  • Defined in src/queue.ts:8
  • @@ -70,14 +70,14 @@

    T

    Returns Queue<T>

    +
  • Defined in src/queue.ts:16
  • Properties

    items: T[]
    +
  • Defined in src/queue.ts:9
  • maxSize: number
    @@ -85,12 +85,12 @@
    +
  • Defined in src/queue.ts:14
  • offset: number
    +
  • Defined in src/queue.ts:10
  • size: number
    @@ -98,7 +98,7 @@
    +
  • Defined in src/queue.ts:12
  • Methods

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

    Returns void

    +
  • Defined in src/queue.ts:68
  • +
  • Defined in src/queue.ts:40
  • +
  • Defined in src/queue.ts:26
  • +
  • Defined in src/queue.ts:58
  • @@ -47,7 +47,7 @@ but the minimum number of workers will be guaranteed.

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

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

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

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

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

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

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

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

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

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

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

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

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

    +
  • Defined in src/worker/abstract-worker.ts:202
  • +
  • Defined in src/worker/abstract-worker.ts:183
  • +
  • Defined in src/worker/thread-worker.ts:61
  • +
  • Defined in src/worker/abstract-worker.ts:147
  • +
  • Defined in src/worker/abstract-worker.ts:264
  • +
  • Defined in src/worker/abstract-worker.ts:227
  • +
  • Defined in src/worker/thread-worker.ts:56
  • @@ -42,7 +42,7 @@ +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:27
  • @@ -106,14 +106,14 @@

    Returns WorkerChoiceStrategyContext<Worker, Data, Response>

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:44
  • Properties

    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
    @@ -121,7 +121,7 @@
    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:46
  • Methods

    @@ -137,7 +137,7 @@

    Throws

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

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:167
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:113
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:126
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:185
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:198
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:139
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:153
  • @@ -26,7 +26,7 @@ Always returns a value greater than zero.

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

    poolifier - v2.6.8

    +

    poolifier - v2.6.9

    Index

    @@ -105,7 +105,7 @@

    Theme

    @@ -26,7 +26,7 @@ +
  • Defined in src/pools/cluster/fixed.ts:15
  • @@ -59,7 +59,7 @@
    +
  • Defined in src/pools/pool.ts:156
  • enableTasksQueue?: boolean
    @@ -70,7 +70,7 @@
    +
  • Defined in src/pools/pool.ts:162
  • env?: Record<string, unknown>
    @@ -80,7 +80,7 @@

    See

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

    +
  • Defined in src/pools/cluster/fixed.ts:21
  • errorHandler?: ErrorHandler<Worker>
    @@ -89,7 +89,7 @@
    +
  • Defined in src/pools/pool.ts:128
  • exitHandler?: ExitHandler<Worker>
    @@ -98,7 +98,7 @@
    +
  • Defined in src/pools/pool.ts:136
  • messageHandler?: MessageHandler<Worker>
    @@ -107,7 +107,7 @@
    +
  • Defined in src/pools/pool.ts:124
  • onlineHandler?: OnlineHandler<Worker>
    @@ -116,7 +116,7 @@
    +
  • Defined in src/pools/pool.ts:132
  • restartWorkerOnError?: boolean
    @@ -125,7 +125,7 @@
    +
  • Defined in src/pools/pool.ts:150
  • settings?: ClusterSettings
    @@ -135,7 +135,7 @@

    See

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

    +
  • Defined in src/pools/cluster/fixed.ts:27
  • tasksQueueOptions?: TasksQueueOptions
    @@ -144,7 +144,7 @@
    +
  • Defined in src/pools/pool.ts:166
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    @@ -155,7 +155,7 @@
    +
  • Defined in src/pools/pool.ts:142
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -164,7 +164,7 @@
    +
  • Defined in src/pools/pool.ts:146
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:95
  • @@ -42,17 +42,17 @@
    +
  • Defined in src/pools/worker.ts:97
  • +
  • Defined in src/pools/worker.ts:96
  • utilization?: number
    +
  • Defined in src/pools/worker.ts:98
  • @@ -46,7 +46,7 @@ +
  • Defined in src/pools/pool.ts:176
  • @@ -81,7 +81,7 @@

    Returns Promise<void>

    +
  • Defined in src/pools/pool.ts:211
  • emitter?: PoolEmitter
    @@ -96,7 +96,7 @@
    +
  • Defined in src/pools/pool.ts:199
  • enableTasksQueue: ((enable, tasksQueueOptions?) => void)
    @@ -125,7 +125,7 @@

    Returns void

    +
  • Defined in src/pools/pool.ts:236
  • execute: ((data?, name?) => Promise<Response>)
    @@ -155,7 +155,7 @@
    +
  • Defined in src/pools/pool.ts:207
  • info: PoolInfo
    @@ -163,7 +163,7 @@
    +
  • Defined in src/pools/pool.ts:184
  • setTasksQueueOptions: ((tasksQueueOptions) => void)
    @@ -187,7 +187,7 @@

    Returns void

    +
  • Defined in src/pools/pool.ts:245
  • setWorkerChoiceStrategy: ((workerChoiceStrategy, workerChoiceStrategyOptions?) => void)
    @@ -216,7 +216,7 @@

    Returns void

    +
  • Defined in src/pools/pool.ts:218
  • setWorkerChoiceStrategyOptions: ((workerChoiceStrategyOptions) => void)
    @@ -240,7 +240,7 @@

    Returns void

    +
  • Defined in src/pools/pool.ts:227
  • workerNodes: WorkerNode<Worker, Data>[]
    @@ -248,7 +248,7 @@
    +
  • Defined in src/pools/pool.ts:188
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:176
  • @@ -46,7 +46,7 @@
    +
  • Defined in src/pools/worker.ts:180
  • 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:188
  • once: ((event, handler) => void)
    @@ -147,12 +147,12 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:198
  • threadId?: number
    +
  • Defined in src/pools/worker.ts:181
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:158
  • @@ -58,7 +58,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:184
  • remove: ((workerNodeKey) => boolean)
    @@ -83,7 +83,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:191
  • reset: (() => boolean)
    @@ -100,7 +100,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:172
  • setOptions: ((opts) => void)
    @@ -124,7 +124,7 @@

    Returns void

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:197
  • strategyPolicy: StrategyPolicy
    @@ -132,7 +132,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:162
  • taskStatisticsRequirements: TaskStatisticsRequirements
    @@ -140,7 +140,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:166
  • update: ((workerNodeKey) => boolean)
    @@ -162,7 +162,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:178
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:61
  • @@ -43,7 +43,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:65
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:63
  • @@ -48,7 +48,7 @@
    +
  • Defined in src/pools/worker.ts:67
  • average?: number
    @@ -56,7 +56,7 @@
    +
  • Defined in src/pools/worker.ts:79
  • history: CircularArray<number>
    @@ -64,7 +64,7 @@
    +
  • Defined in src/pools/worker.ts:87
  • maximum?: number
    @@ -72,7 +72,7 @@
    +
  • Defined in src/pools/worker.ts:75
  • median?: number
    @@ -80,7 +80,7 @@
    +
  • Defined in src/pools/worker.ts:83
  • minimum?: number
    @@ -88,7 +88,7 @@
    +
  • Defined in src/pools/worker.ts:71
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:108
  • @@ -45,7 +45,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:112
  • average: boolean
    @@ -53,7 +53,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:116
  • median: boolean
    @@ -61,7 +61,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:120
  • @@ -39,7 +39,7 @@ +
  • Defined in src/utility-types.ts:62
  • @@ -69,7 +69,7 @@
    +
  • Defined in src/pools/worker.ts:47
  • dynamic?: boolean
    @@ -77,7 +77,7 @@
    +
  • Defined in src/utility-types.ts:91
  • id?: string
    @@ -86,7 +86,7 @@
    +
  • Defined in src/pools/worker.ts:55
  • kill?: 1 | "SOFT" | "HARD"
    @@ -94,7 +94,7 @@
    +
  • Defined in src/utility-types.ts:71
  • name?: string
    @@ -103,7 +103,7 @@
    +
  • Defined in src/pools/worker.ts:43
  • started?: boolean
    @@ -111,7 +111,7 @@
    +
  • Defined in src/utility-types.ts:87
  • statistics?: WorkerStatistics
    @@ -119,7 +119,7 @@
    +
  • Defined in src/utility-types.ts:83
  • taskError?: TaskError<ErrorData>
    @@ -127,7 +127,7 @@
    +
  • Defined in src/utility-types.ts:75
  • taskPerformance?: TaskPerformance
    @@ -135,7 +135,7 @@
    +
  • Defined in src/utility-types.ts:79
  • timestamp?: number
    @@ -144,7 +144,7 @@
    +
  • Defined in src/pools/worker.ts:51
  • workerId?: number
    @@ -152,7 +152,7 @@
    +
  • Defined in src/utility-types.ts:67
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/pool.ts:70
  • @@ -58,22 +58,22 @@
    +
  • Defined in src/pools/pool.ts:83
  • executedTasks: number
    +
  • Defined in src/pools/pool.ts:84
  • executingTasks: number
    +
  • Defined in src/pools/pool.ts:85
  • failedTasks: number
    +
  • Defined in src/pools/pool.ts:88
  • idleWorkerNodes: number
    @@ -81,27 +81,27 @@
    +
  • Defined in src/pools/pool.ts:81
  • maxQueuedTasks: number
    +
  • Defined in src/pools/pool.ts:87
  • maxSize: number
    +
  • Defined in src/pools/pool.ts:75
  • minSize: number
    +
  • Defined in src/pools/pool.ts:74
  • queuedTasks: number
    +
  • Defined in src/pools/pool.ts:86
  • runTime?: {
        average: number;
        maximum: number;
        median?: number;
        minimum: number;
    }
    @@ -117,12 +117,12 @@
  • minimum: number
  • +
  • Defined in src/pools/pool.ts:89
  • type: "fixed" | "dynamic"
    +
  • Defined in src/pools/pool.ts:72
  • utilization?: number
    @@ -130,12 +130,12 @@
    +
  • Defined in src/pools/pool.ts:77
  • version: string
    +
  • Defined in src/pools/pool.ts:71
  • waitTime?: {
        average: number;
        maximum: number;
        median?: number;
        minimum: number;
    }
    @@ -151,12 +151,12 @@
  • minimum: number
  • +
  • Defined in src/pools/pool.ts:95
  • worker: "cluster" | "thread"
    +
  • Defined in src/pools/pool.ts:73
  • workerNodes: number
    @@ -164,7 +164,7 @@
    +
  • Defined in src/pools/pool.ts:79
  • @@ -35,7 +35,7 @@
  • ClusterPoolOptions
  • ThreadPoolOptions
  • +
  • Defined in src/pools/pool.ts:120
  • @@ -65,7 +65,7 @@

    Default Value

    true

    +
  • Defined in src/pools/pool.ts:156
  • enableTasksQueue?: boolean
    @@ -75,7 +75,7 @@

    Default Value

    false

    +
  • Defined in src/pools/pool.ts:162
  • errorHandler?: ErrorHandler<Worker>
    @@ -83,7 +83,7 @@
    +
  • Defined in src/pools/pool.ts:128
  • exitHandler?: ExitHandler<Worker>
    @@ -91,7 +91,7 @@
    +
  • Defined in src/pools/pool.ts:136
  • messageHandler?: MessageHandler<Worker>
    @@ -99,7 +99,7 @@
    +
  • Defined in src/pools/pool.ts:124
  • onlineHandler?: OnlineHandler<Worker>
    @@ -107,7 +107,7 @@
    +
  • Defined in src/pools/pool.ts:132
  • restartWorkerOnError?: boolean
    @@ -115,7 +115,7 @@
    +
  • Defined in src/pools/pool.ts:150
  • tasksQueueOptions?: TasksQueueOptions
    @@ -123,7 +123,7 @@
    +
  • Defined in src/pools/pool.ts:166
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    @@ -133,7 +133,7 @@

    Default Value

    WorkerChoiceStrategies.ROUND_ROBIN

    +
  • Defined in src/pools/pool.ts:142
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -141,7 +141,7 @@
    +
  • Defined in src/pools/pool.ts:146
  • @@ -37,7 +37,7 @@ +
  • Defined in src/utility-types.ts:101
  • @@ -71,7 +71,7 @@

    Returns void

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

    Returns void

    +
  • Defined in src/utility-types.ts:108
  • worker: Worker
    @@ -100,7 +100,7 @@
    +
  • Defined in src/utility-types.ts:116
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:148
  • @@ -43,7 +43,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:152
  • @@ -34,7 +34,7 @@ +
  • Defined in src/pools/worker.ts:39
  • @@ -56,7 +56,7 @@
    +
  • Defined in src/pools/worker.ts:47
  • id?: string
    @@ -64,7 +64,7 @@
    +
  • Defined in src/pools/worker.ts:55
  • name?: string
    @@ -72,7 +72,7 @@
    +
  • Defined in src/pools/worker.ts:43
  • timestamp?: number
    @@ -80,7 +80,7 @@
    +
  • Defined in src/pools/worker.ts:51
  • @@ -32,7 +32,7 @@ +
  • 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
  • workerId: number
    @@ -69,7 +69,7 @@
    +
  • Defined in src/utility-types.ts:14
  • @@ -24,7 +24,7 @@ +
  • Defined in src/utility-types.ts:30
  • @@ -45,7 +45,7 @@
    +
  • Defined in src/utility-types.ts:42
  • runTime?: number
    @@ -53,7 +53,7 @@
    +
  • Defined in src/utility-types.ts:38
  • timestamp: number
    @@ -61,7 +61,7 @@
    +
  • Defined in src/utility-types.ts:34
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:106
  • @@ -47,7 +47,7 @@
    +
  • Defined in src/pools/worker.ts:110
  • executing: number
    @@ -55,7 +55,7 @@
    +
  • Defined in src/pools/worker.ts:114
  • failed: number
    @@ -63,7 +63,7 @@
    +
  • Defined in src/pools/worker.ts:126
  • maxQueued: number
    @@ -71,7 +71,7 @@
    +
  • Defined in src/pools/worker.ts:122
  • queued: number
    @@ -79,7 +79,7 @@
    +
  • Defined in src/pools/worker.ts:118
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:128
  • @@ -45,7 +45,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:140
  • @@ -53,7 +53,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:132
  • waitTime: MeasurementStatisticsRequirements
    @@ -61,7 +61,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:136
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/pool.ts:106
  • @@ -45,7 +45,7 @@

    Default Value

    1

    +
  • Defined in src/pools/pool.ts:112
  • @@ -26,7 +26,7 @@ +
  • Defined in src/pools/thread/fixed.ts:20
  • @@ -58,7 +58,7 @@
    +
  • Defined in src/pools/pool.ts:156
  • enableTasksQueue?: boolean
    @@ -69,7 +69,7 @@
    +
  • Defined in src/pools/pool.ts:162
  • errorHandler?: ErrorHandler<Worker>
    @@ -78,7 +78,7 @@
    +
  • Defined in src/pools/pool.ts:128
  • exitHandler?: ExitHandler<Worker>
    @@ -87,7 +87,7 @@
    +
  • Defined in src/pools/pool.ts:136
  • messageHandler?: MessageHandler<Worker>
    @@ -96,7 +96,7 @@
    +
  • Defined in src/pools/pool.ts:124
  • onlineHandler?: OnlineHandler<Worker>
    @@ -105,7 +105,7 @@
    +
  • Defined in src/pools/pool.ts:132
  • restartWorkerOnError?: boolean
    @@ -114,7 +114,7 @@
    +
  • Defined in src/pools/pool.ts:150
  • tasksQueueOptions?: TasksQueueOptions
    @@ -123,7 +123,7 @@
    +
  • Defined in src/pools/pool.ts:166
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    @@ -134,7 +134,7 @@
    +
  • Defined in src/pools/pool.ts:142
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -143,7 +143,7 @@
    +
  • Defined in src/pools/pool.ts:146
  • workerOptions?: WorkerOptions
    @@ -153,7 +153,7 @@

    See

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

    +
  • Defined in src/pools/thread/fixed.ts:26
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:71
  • @@ -49,7 +49,7 @@

    Default Value

    { median: false }

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:93
  • measurement?: "runTime" | "waitTime" | "elu"
    @@ -57,7 +57,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:75
  • runTime?: MeasurementOptions
    @@ -67,7 +67,7 @@

    Default Value

    { median: false }

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:81
  • waitTime?: MeasurementOptions
    @@ -77,7 +77,7 @@

    Default Value

    { median: false }

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:87
  • weights?: Record<number, number>
    @@ -88,7 +88,7 @@ Weight is the tasks maximum average or median runtime in milliseconds.

    Default Value

    Computed worker weights automatically given the CPU performance.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:100
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:134
  • @@ -45,7 +45,7 @@
    +
  • Defined in src/pools/worker.ts:142
  • id: undefined | number
    @@ -53,7 +53,7 @@
    +
  • Defined in src/pools/worker.ts:138
  • started: boolean
    @@ -61,7 +61,7 @@
    +
  • Defined in src/pools/worker.ts:146
  • @@ -37,7 +37,7 @@ +
  • Defined in src/pools/worker.ts:208
  • @@ -59,7 +59,7 @@
    +
  • Defined in src/pools/worker.ts:216
  • tasksQueue: Queue<Task<Data>>
    @@ -67,7 +67,7 @@
    +
  • Defined in src/pools/worker.ts:224
  • usage: WorkerUsage
    @@ -75,7 +75,7 @@
    +
  • Defined in src/pools/worker.ts:220
  • worker: Worker
    @@ -83,7 +83,7 @@
    +
  • Defined in src/pools/worker.ts:212
  • @@ -24,7 +24,7 @@ +
  • Defined in src/worker/worker-options.ts:23
  • @@ -49,7 +49,7 @@

    Deprecated

    This option will be removed in the next major version.

    +
  • Defined in src/worker/worker-options.ts:43
  • killBehavior?: "SOFT" | "HARD"
    @@ -64,7 +64,7 @@

    Default Value

    KillBehaviors.SOFT

    +
  • Defined in src/worker/worker-options.ts:54
  • maxInactiveTime?: number
    @@ -81,7 +81,7 @@ when this timeout expires your tasks is interrupted and the worker is killed if

    Default Value

    60000

    +
  • Defined in src/worker/worker-options.ts:36
  • @@ -24,7 +24,7 @@ +
  • Defined in src/utility-types.ts:50
  • @@ -41,12 +41,12 @@
    elu: boolean
    +
  • Defined in src/utility-types.ts:52
  • runTime: boolean
    +
  • Defined in src/utility-types.ts:51
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:154
  • @@ -46,7 +46,7 @@
    +
  • Defined in src/pools/worker.ts:170
  • @@ -54,7 +54,7 @@
    +
  • Defined in src/pools/worker.ts:162
  • tasks: TaskStatistics
    @@ -62,7 +62,7 @@
    +
  • Defined in src/pools/worker.ts:158
  • waitTime: MeasurementStatistics
    @@ -70,7 +70,7 @@
    +
  • Defined in src/pools/worker.ts:166
  • @@ -40,7 +40,7 @@

    Returns void

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

    Returns void

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

    Returns void

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

    Returns void

    +
  • Defined in src/pools/worker.ts:23
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/pool.ts:65
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/pool.ts:32
  • @@ -36,7 +36,7 @@ The value is the function itself.

    +
  • Defined in src/worker/worker-functions.ts:42
  • @@ -47,7 +47,7 @@ This function must return a promise.

    Returns Promise<Response>

    +
  • Defined in src/worker/worker-functions.ts:18
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:42
  • @@ -34,7 +34,7 @@ This function can be synchronous or asynchronous.

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

    Returns Response

    +
  • Defined in src/worker/worker-functions.ts:7
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/pool.ts:45
  • @@ -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:47
  • @@ -31,7 +31,7 @@
    Readonly taskError: "taskError"
    +
  • Defined in src/pools/pool.ts:55
  • @@ -33,7 +33,7 @@
    +
  • Defined in src/pools/pool.ts:18
  • @@ -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/pool.ts:37