From: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 13 Aug 2023 20:46:57 +0000 (+0000) Subject: chore: generate documentation X-Git-Tag: v2.6.26~42^2~1^2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1d9f69fa27366fd18f2600beeee89187306df22a;p=poolifier.git chore: generate documentation --- diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html index 5d9c47e5..fed14871 100644 --- a/docs/classes/AbstractPool.html +++ b/docs/classes/AbstractPool.html @@ -1,4 +1,4 @@ -AbstractPool | poolifier - v2.6.24
+AbstractPool | poolifier - v2.6.25
  • Preparing search index...
  • -
  • The search index is not available
poolifier - v2.6.24
+
  • The search index is not available
  • poolifier - v2.6.25
    @@ -49,7 +49,7 @@
    • IPool<Worker, Data, Response>
    +
  • Defined in src/pools/abstract-pool.ts:56
  • @@ -177,7 +177,7 @@

    Returns AbstractPool<Worker, Data, Response>

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

    @@ -196,7 +196,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:65
  • filePath: string
    @@ -204,7 +204,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:105
  • numberOfWorkers: number
    @@ -212,7 +212,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:104
  • opts: PoolOptions<Worker>
    @@ -220,7 +220,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:106
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    @@ -233,7 +233,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:75
  • startTimestamp: number
    @@ -241,7 +241,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:94
  • starting: boolean
    @@ -249,7 +249,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:90
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -257,7 +257,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:81
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -266,7 +266,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:62
  • Accessors

    @@ -280,7 +280,7 @@

    Returns boolean

    +
  • Defined in src/pools/abstract-pool.ts:616
  • +
  • Defined in src/pools/abstract-pool.ts:607
  • +
  • Defined in src/pools/abstract-pool.ts:302
  • +
  • Defined in src/pools/abstract-pool.ts:498
  • +
  • Defined in src/pools/abstract-pool.ts:493
  • +
  • Defined in src/pools/abstract-pool.ts:445
  • +
  • Defined in src/pools/abstract-pool.ts:483
  • +
  • Defined in src/pools/abstract-pool.ts:462
  • +
  • Defined in src/pools/abstract-pool.ts:488
  • Methods

    @@ -396,7 +396,7 @@

    Throws

    https://nodejs.org/api/errors.html#class-error If the added worker node is not found.

    +
  • Defined in src/pools/abstract-pool.ts:1138
  • +
  • Defined in src/pools/abstract-pool.ts:745
  • +
  • Defined in src/pools/abstract-pool.ts:976
  • +
  • Defined in src/pools/abstract-pool.ts:724
  • Returns TasksQueueOptions

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

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

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

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

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

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

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

    +
  • Defined in src/pools/abstract-pool.ts:237
  • +
  • Defined in src/pools/abstract-pool.ts:839
  • +
  • Defined in src/pools/abstract-pool.ts:925
  • +
  • Defined in src/pools/abstract-pool.ts:885
  • +
  • Defined in src/pools/abstract-pool.ts:878
  • Returns undefined | Task<Data>

    +
  • Defined in src/pools/abstract-pool.ts:1180
  • +
  • Defined in src/pools/abstract-pool.ts:687
  • +
  • Defined in src/pools/abstract-pool.ts:700
  • +
  • Defined in src/pools/abstract-pool.ts:572
  • Returns number

    +
  • Defined in src/pools/abstract-pool.ts:1176
  • +
  • Defined in src/pools/abstract-pool.ts:644
  • +
  • Defined in src/pools/abstract-pool.ts:1171
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1188
  • +
  • Defined in src/pools/abstract-pool.ts:1198
  • +
  • Defined in src/pools/abstract-pool.ts:1127
  • +
  • Defined in src/pools/abstract-pool.ts:523
  • +
  • Defined in src/pools/abstract-pool.ts:535
  • Returns void

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

    +
  • Defined in src/pools/abstract-pool.ts:1072
  • +
  • Defined in src/pools/abstract-pool.ts:623
  • +
  • Defined in src/pools/abstract-pool.ts:715
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1010
  • +
  • Defined in src/pools/abstract-pool.ts:963
  • +
  • Defined in src/pools/abstract-pool.ts:1157
  • +
  • Defined in src/pools/abstract-pool.ts:990
  • +
  • Defined in src/pools/abstract-pool.ts:867
  • +
  • Defined in src/pools/abstract-pool.ts:997
  • +
  • Defined in src/pools/abstract-pool.ts:584
  • +
  • Defined in src/pools/abstract-pool.ts:542
  • +
  • Defined in src/pools/abstract-pool.ts:561
  • +
  • Defined in src/pools/abstract-pool.ts:708
  • +
  • Defined in src/pools/abstract-pool.ts:856
  • +
  • Defined in src/pools/abstract-pool.ts:289
  • Returns number

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

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

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

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

    +
  • Defined in src/pools/abstract-pool.ts:786
  • +
  • Defined in src/pools/abstract-pool.ts:1059
  • @@ -47,7 +47,7 @@
  • ClusterWorker
  • ThreadWorker
  • +
  • Defined in src/worker/abstract-worker.ts:39
  • @@ -151,7 +151,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:73
  • Properties

    @@ -161,7 +161,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:63
  • id: number
    @@ -169,7 +169,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:47
  • isMain: boolean
    @@ -177,7 +177,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:75
  • lastTaskTimestamp: number
    @@ -185,7 +185,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:55
  • mainWorker: MainWorker
    @@ -193,7 +193,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:76
  • opts: WorkerOptions = ...
    @@ -201,7 +201,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:78
  • statistics: WorkerStatistics
    @@ -209,7 +209,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:59
  • taskFunctions: Map<string, TaskFunction<Data, Response>>
    @@ -217,7 +217,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:51
  • Methods

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

    Throws

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

    +
  • Defined in src/worker/abstract-worker.ts:182
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:306
  • Returns TaskPerformance

    +
  • Defined in src/worker/abstract-worker.ts:501
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:283
  • +
  • Defined in src/worker/abstract-worker.ts:351
  • +
  • Defined in src/worker/abstract-worker.ts:525
  • +
  • Defined in src/worker/abstract-worker.ts:110
  • Returns void

    +
  • Defined in src/worker/abstract-worker.ts:98
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:302
  • Returns TaskPerformance

    +
  • Defined in src/worker/abstract-worker.ts:510
  • +
  • Defined in src/worker/abstract-worker.ts:365
  • +
  • Defined in src/worker/abstract-worker.ts:492
  • +
  • Defined in src/worker/abstract-worker.ts:387
  • +
  • Defined in src/worker/abstract-worker.ts:322
  • +
  • Defined in src/worker/abstract-worker.ts:288
  • +
  • Defined in src/worker/abstract-worker.ts:164
  • +
  • Defined in src/worker/abstract-worker.ts:245
  • +
  • Defined in src/worker/abstract-worker.ts:295
  • +
  • Defined in src/worker/abstract-worker.ts:221
  • +
  • Defined in src/worker/abstract-worker.ts:397
  • +
  • Defined in src/worker/abstract-worker.ts:451
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:294
  • +
  • Defined in src/worker/abstract-worker.ts:415
  • +
  • Defined in src/worker/abstract-worker.ts:377
  • +
  • Defined in src/worker/abstract-worker.ts:258
  • +
  • Defined in src/worker/abstract-worker.ts:330
  • +
  • Defined in src/worker/abstract-worker.ts:341
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:311
  • +
  • Defined in src/worker/abstract-worker.ts:531
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:277
  • @@ -31,7 +31,7 @@ +
  • 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

    Returns void

    +
  • Defined in src/circular-array.ts:98
  • +
  • Defined in src/circular-array.ts:39
  • +
  • Defined in src/circular-array.ts:90
  • +
  • Defined in src/circular-array.ts:94
  • +
  • Defined in src/circular-array.ts:21
  • Returns void

    +
  • Defined in src/circular-array.ts:78
  • +
  • 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
  • @@ -126,7 +126,7 @@ but the minimum number of workers will be guaranteed.

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

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

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

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

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

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

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

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

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

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

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

    +
  • Defined in src/worker/abstract-worker.ts:182
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:306
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:283
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:302
  • +
  • Defined in src/worker/abstract-worker.ts:365
  • +
  • Defined in src/worker/abstract-worker.ts:387
  • +
  • Defined in src/worker/abstract-worker.ts:322
  • +
  • Defined in src/worker/cluster-worker.ts:45
  • +
  • Defined in src/worker/abstract-worker.ts:164
  • +
  • Defined in src/worker/abstract-worker.ts:245
  • +
  • Defined in src/worker/abstract-worker.ts:295
  • +
  • Defined in src/worker/abstract-worker.ts:221
  • +
  • Defined in src/worker/abstract-worker.ts:397
  • +
  • Defined in src/worker/abstract-worker.ts:451
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:294
  • +
  • Defined in src/worker/abstract-worker.ts:415
  • +
  • Defined in src/worker/cluster-worker.ts:58
  • +
  • Defined in src/worker/abstract-worker.ts:258
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:311
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:277
  • @@ -45,7 +45,7 @@ When the maximum number of workers is reached and workers are busy, an event is +
  • Defined in src/pools/cluster/dynamic.ts:15
  • @@ -147,7 +147,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

    @@ -166,7 +166,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:65
  • filePath: string
    @@ -175,7 +175,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:105
  • max: number
    @@ -183,7 +183,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
    @@ -192,7 +192,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:104
  • @@ -201,7 +201,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>> = ...
    @@ -215,7 +215,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:75
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -224,7 +224,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:81
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -233,7 +233,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:62
  • Accessors

    @@ -248,7 +248,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:48
  • +
  • Defined in src/pools/abstract-pool.ts:607
  • +
  • Defined in src/pools/abstract-pool.ts:302
  • +
  • Defined in src/pools/cluster/dynamic.ts:43
  • +
  • Defined in src/pools/cluster/fixed.ts:120
  • +
  • Defined in src/pools/abstract-pool.ts:445
  • +
  • Defined in src/pools/cluster/dynamic.ts:38
  • +
  • Defined in src/pools/abstract-pool.ts:462
  • +
  • Defined in src/pools/cluster/fixed.ts:115
  • Methods

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

    +
  • Defined in src/pools/abstract-pool.ts:745
  • +
  • Defined in src/pools/abstract-pool.ts:976
  • +
  • Defined in src/pools/abstract-pool.ts:724
  • +
  • Defined in src/pools/abstract-pool.ts:174
  • +
  • Defined in src/pools/abstract-pool.ts:925
  • +
  • Defined in src/pools/abstract-pool.ts:885
  • +
  • Defined in src/pools/cluster/fixed.ts:105
  • +
  • Defined in src/pools/abstract-pool.ts:687
  • +
  • Defined in src/pools/cluster/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:572
  • +
  • Defined in src/pools/abstract-pool.ts:644
  • +
  • Defined in src/pools/abstract-pool.ts:1188
  • +
  • Defined in src/pools/abstract-pool.ts:1127
  • +
  • Defined in src/pools/abstract-pool.ts:623
  • +
  • Defined in src/pools/cluster/fixed.ts:58
  • +
  • Defined in src/pools/cluster/fixed.ts:97
  • +
  • Defined in src/pools/cluster/fixed.ts:89
  • +
  • Defined in src/pools/cluster/fixed.ts:81
  • +
  • Defined in src/pools/abstract-pool.ts:584
  • +
  • Defined in src/pools/abstract-pool.ts:542
  • +
  • Defined in src/pools/abstract-pool.ts:561
  • +
  • Defined in src/pools/cluster/fixed.ts:53
  • +
  • Defined in src/pools/abstract-pool.ts:1059
  • @@ -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
  • @@ -147,7 +147,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

    @@ -166,7 +166,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:65
  • filePath: string
    @@ -175,7 +175,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:105
  • max: number
    @@ -183,7 +183,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
    @@ -192,7 +192,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:104
  • @@ -201,7 +201,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>> = ...
    @@ -215,7 +215,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:75
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -224,7 +224,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:81
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -233,7 +233,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:62
  • Accessors

    @@ -248,7 +248,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:48
  • +
  • Defined in src/pools/abstract-pool.ts:607
  • +
  • Defined in src/pools/abstract-pool.ts:302
  • +
  • Defined in src/pools/thread/dynamic.ts:43
  • +
  • Defined in src/pools/thread/fixed.ts:132
  • +
  • Defined in src/pools/abstract-pool.ts:445
  • +
  • Defined in src/pools/thread/dynamic.ts:38
  • +
  • Defined in src/pools/abstract-pool.ts:462
  • +
  • Defined in src/pools/thread/fixed.ts:127
  • Methods

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

    +
  • Defined in src/pools/abstract-pool.ts:745
  • +
  • Defined in src/pools/abstract-pool.ts:976
  • +
  • Defined in src/pools/abstract-pool.ts:724
  • +
  • Defined in src/pools/abstract-pool.ts:174
  • +
  • Defined in src/pools/abstract-pool.ts:925
  • +
  • Defined in src/pools/abstract-pool.ts:885
  • +
  • Defined in src/pools/thread/fixed.ts:114
  • +
  • Defined in src/pools/abstract-pool.ts:687
  • +
  • Defined in src/pools/thread/fixed.ts:60
  • +
  • Defined in src/pools/abstract-pool.ts:572
  • +
  • Defined in src/pools/abstract-pool.ts:644
  • +
  • Defined in src/pools/abstract-pool.ts:1188
  • +
  • Defined in src/pools/abstract-pool.ts:1127
  • +
  • Defined in src/pools/abstract-pool.ts:623
  • +
  • Defined in src/pools/thread/fixed.ts:55
  • +
  • Defined in src/pools/thread/fixed.ts:104
  • +
  • Defined in src/pools/thread/fixed.ts:88
  • +
  • Defined in src/pools/thread/fixed.ts:77
  • +
  • Defined in src/pools/abstract-pool.ts:584
  • +
  • Defined in src/pools/abstract-pool.ts:542
  • +
  • Defined in src/pools/abstract-pool.ts:561
  • +
  • Defined in src/pools/abstract-pool.ts:708
  • +
  • Defined in src/pools/abstract-pool.ts:1059
  • @@ -45,7 +45,7 @@ +
  • Defined in src/pools/cluster/fixed.ts:33
  • @@ -141,7 +141,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:44
  • Properties

    @@ -160,7 +160,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:65
  • filePath: string
    @@ -169,7 +169,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:105
  • numberOfWorkers: number
    @@ -178,7 +178,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:104
  • @@ -187,7 +187,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:47
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    @@ -201,7 +201,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:75
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -210,7 +210,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:81
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -219,7 +219,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:62
  • Accessors

    @@ -234,7 +234,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:130
  • +
  • Defined in src/pools/abstract-pool.ts:607
  • +
  • Defined in src/pools/abstract-pool.ts:302
  • +
  • Defined in src/pools/cluster/fixed.ts:125
  • +
  • Defined in src/pools/cluster/fixed.ts:120
  • +
  • Defined in src/pools/abstract-pool.ts:445
  • +
  • Defined in src/pools/cluster/fixed.ts:110
  • +
  • Defined in src/pools/abstract-pool.ts:462
  • +
  • Defined in src/pools/cluster/fixed.ts:115
  • Methods

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

    +
  • Defined in src/pools/abstract-pool.ts:745
  • +
  • Defined in src/pools/abstract-pool.ts:976
  • +
  • Defined in src/pools/abstract-pool.ts:724
  • +
  • Defined in src/pools/abstract-pool.ts:174
  • +
  • Defined in src/pools/abstract-pool.ts:925
  • +
  • Defined in src/pools/abstract-pool.ts:885
  • +
  • Defined in src/pools/cluster/fixed.ts:105
  • +
  • Defined in src/pools/abstract-pool.ts:687
  • +
  • Defined in src/pools/cluster/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:572
  • +
  • Defined in src/pools/abstract-pool.ts:644
  • +
  • Defined in src/pools/abstract-pool.ts:1188
  • +
  • Defined in src/pools/abstract-pool.ts:1127
  • +
  • Defined in src/pools/abstract-pool.ts:623
  • +
  • Defined in src/pools/cluster/fixed.ts:58
  • +
  • Defined in src/pools/cluster/fixed.ts:97
  • +
  • Defined in src/pools/cluster/fixed.ts:89
  • +
  • Defined in src/pools/cluster/fixed.ts:81
  • +
  • Defined in src/pools/abstract-pool.ts:584
  • +
  • Defined in src/pools/abstract-pool.ts:542
  • +
  • Defined in src/pools/abstract-pool.ts:561
  • +
  • Defined in src/pools/cluster/fixed.ts:53
  • +
  • Defined in src/pools/abstract-pool.ts:1059
  • @@ -45,7 +45,7 @@ +
  • Defined in src/pools/thread/fixed.ts:35
  • @@ -141,7 +141,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:46
  • Properties

    @@ -160,7 +160,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:65
  • filePath: string
    @@ -169,7 +169,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:105
  • numberOfWorkers: number
    @@ -178,7 +178,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:104
  • @@ -187,7 +187,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:49
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    @@ -201,7 +201,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:75
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -210,7 +210,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:81
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -219,7 +219,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:62
  • Accessors

    @@ -234,7 +234,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:142
  • +
  • Defined in src/pools/abstract-pool.ts:607
  • +
  • Defined in src/pools/abstract-pool.ts:302
  • +
  • Defined in src/pools/thread/fixed.ts:137
  • +
  • Defined in src/pools/thread/fixed.ts:132
  • +
  • Defined in src/pools/abstract-pool.ts:445
  • +
  • Defined in src/pools/thread/fixed.ts:122
  • +
  • Defined in src/pools/abstract-pool.ts:462
  • +
  • Defined in src/pools/thread/fixed.ts:127
  • Methods

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

    +
  • Defined in src/pools/abstract-pool.ts:745
  • +
  • Defined in src/pools/abstract-pool.ts:976
  • +
  • Defined in src/pools/abstract-pool.ts:724
  • +
  • Defined in src/pools/abstract-pool.ts:174
  • +
  • Defined in src/pools/abstract-pool.ts:925
  • +
  • Defined in src/pools/abstract-pool.ts:885
  • +
  • Defined in src/pools/thread/fixed.ts:114
  • +
  • Defined in src/pools/abstract-pool.ts:687
  • +
  • Defined in src/pools/thread/fixed.ts:60
  • +
  • Defined in src/pools/abstract-pool.ts:572
  • +
  • Defined in src/pools/abstract-pool.ts:644
  • +
  • Defined in src/pools/abstract-pool.ts:1188
  • +
  • Defined in src/pools/abstract-pool.ts:1127
  • +
  • Defined in src/pools/abstract-pool.ts:623
  • +
  • Defined in src/pools/thread/fixed.ts:55
  • +
  • Defined in src/pools/thread/fixed.ts:104
  • +
  • Defined in src/pools/thread/fixed.ts:88
  • +
  • Defined in src/pools/thread/fixed.ts:77
  • +
  • Defined in src/pools/abstract-pool.ts:584
  • +
  • Defined in src/pools/abstract-pool.ts:542
  • +
  • Defined in src/pools/abstract-pool.ts:561
  • +
  • Defined in src/pools/abstract-pool.ts:708
  • +
  • Defined in src/pools/abstract-pool.ts:1059
  • @@ -26,7 +26,7 @@ +
  • Defined in src/pools/pool.ts:39
  • @@ -60,6 +60,7 @@ removeAllListeners removeListener setMaxListeners +addAbortListener getEventListeners getMaxListeners listenerCount @@ -82,7 +83,7 @@

    Returns PoolEmitter

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

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

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

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

    +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:454
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:716
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:779
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:631
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:725
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:644
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:604
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:486
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:516
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:743
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:759
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:675
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:615
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:599
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:625
  • +
    + +
    +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:296
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:325
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:268
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:250
  • @@ -799,7 +844,7 @@ special handling:

    Returns Promise<any[]>

  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:190
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/events.d.ts:340
  • @@ -32,7 +32,7 @@
    • Queue
    +
  • Defined in src/queue.ts:8
  • @@ -71,14 +71,14 @@

    T

    Returns Queue<T>

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

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

    @@ -115,7 +115,7 @@

    See

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

    +
  • Defined in src/queue.ts:81
  • +
  • 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.

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

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

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

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

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

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

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

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

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

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

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

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

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

    +
  • Defined in src/worker/abstract-worker.ts:182
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:306
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:283
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:302
  • +
  • Defined in src/worker/abstract-worker.ts:365
  • +
  • Defined in src/worker/thread-worker.ts:85
  • +
  • Defined in src/worker/thread-worker.ts:68
  • +
  • Defined in src/worker/thread-worker.ts:54
  • +
  • Defined in src/worker/abstract-worker.ts:164
  • +
  • Defined in src/worker/abstract-worker.ts:245
  • +
  • Defined in src/worker/abstract-worker.ts:295
  • +
  • Defined in src/worker/abstract-worker.ts:221
  • +
  • Defined in src/worker/abstract-worker.ts:397
  • +
  • Defined in src/worker/abstract-worker.ts:451
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:294
  • +
  • Defined in src/worker/abstract-worker.ts:415
  • +
  • Defined in src/worker/thread-worker.ts:80
  • +
  • Defined in src/worker/abstract-worker.ts:258
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:311
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:277
  • @@ -42,7 +42,7 @@
    • WorkerChoiceStrategyContext
    +
  • 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:47
  • -

    poolifier - v2.6.24

    +

    poolifier - v2.6.25

    Index

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

    Theme

    @@ -26,7 +26,7 @@
    • ClusterPoolOptions
    +
  • Defined in src/pools/cluster/fixed.ts:10
  • @@ -59,7 +59,7 @@
    +
  • Defined in src/pools/pool.ts:148
  • enableTasksQueue?: boolean
    @@ -70,7 +70,7 @@
    +
  • Defined in src/pools/pool.ts:154
  • 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:16
  • errorHandler?: ErrorHandler<Worker>
    @@ -89,7 +89,7 @@
    +
  • Defined in src/pools/pool.ts:120
  • exitHandler?: ExitHandler<Worker>
    @@ -98,7 +98,7 @@
    +
  • Defined in src/pools/pool.ts:128
  • messageHandler?: MessageHandler<Worker>
    @@ -107,7 +107,7 @@
    +
  • Defined in src/pools/pool.ts:116
  • onlineHandler?: OnlineHandler<Worker>
    @@ -116,7 +116,7 @@
    +
  • Defined in src/pools/pool.ts:124
  • restartWorkerOnError?: boolean
    @@ -125,7 +125,7 @@
    +
  • Defined in src/pools/pool.ts:142
  • settings?: ClusterSettings
    @@ -135,7 +135,7 @@

    See

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

    +
  • Defined in src/pools/cluster/fixed.ts:22
  • tasksQueueOptions?: TasksQueueOptions
    @@ -144,7 +144,7 @@
    +
  • Defined in src/pools/pool.ts:158
  • 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:134
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -164,7 +164,7 @@
    +
  • Defined in src/pools/pool.ts:138
  • @@ -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:168
  • @@ -81,7 +81,7 @@

    Returns Promise<void>

    +
  • Defined in src/pools/pool.ts:209
  • emitter?: PoolEmitter
    @@ -97,7 +97,7 @@
    +
  • Defined in src/pools/pool.ts:192
  • enableTasksQueue: ((enable, tasksQueueOptions?) => void)
    @@ -126,7 +126,7 @@

    Returns void

    +
  • Defined in src/pools/pool.ts:234
  • execute: ((data?, name?, transferList?) => Promise<Response>)
    @@ -161,7 +161,7 @@
    +
  • Defined in src/pools/pool.ts:201
  • info: PoolInfo
    @@ -169,7 +169,7 @@
    +
  • Defined in src/pools/pool.ts:176
  • setTasksQueueOptions: ((tasksQueueOptions) => void)
    @@ -193,7 +193,7 @@

    Returns void

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

    Returns void

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

    Returns void

    +
  • Defined in src/pools/pool.ts:225
  • workerNodes: IWorkerNode<Worker, Data>[]
    @@ -254,7 +254,7 @@
    +
  • Defined in src/pools/pool.ts:180
  • @@ -24,7 +24,7 @@
    • IWorker
    +
  • Defined in src/pools/worker.ts:173
  • @@ -46,7 +46,7 @@
    +
  • Defined in src/pools/worker.ts:177
  • 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:185
  • once: ((event, handler) => void)
    @@ -147,12 +147,12 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:195
  • threadId?: number
    +
  • Defined in src/pools/worker.ts:178
  • +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:186
  • remove: ((workerNodeKey) => boolean)
    @@ -83,7 +83,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:193
  • reset: (() => boolean)
    @@ -100,7 +100,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:174
  • setOptions: ((opts) => void)
    @@ -124,7 +124,7 @@

    Returns void

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:199
  • strategyPolicy: StrategyPolicy
    @@ -132,7 +132,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:164
  • taskStatisticsRequirements: TaskStatisticsRequirements
    @@ -140,7 +140,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:168
  • update: ((workerNodeKey) => boolean)
    @@ -162,7 +162,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:180
  • @@ -37,7 +37,7 @@
    • IWorkerNode
    +
  • Defined in src/pools/worker.ts:205
  • @@ -73,7 +73,7 @@

    Returns void

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

    Returns void

    +
  • Defined in src/pools/worker.ts:248
  • dequeueTask: (() => undefined | Task<Data>)
    @@ -106,7 +106,7 @@
    +
  • Defined in src/pools/worker.ts:236
  • enqueueTask: ((task) => number)
    @@ -131,7 +131,7 @@
    +
  • Defined in src/pools/worker.ts:230
  • getTaskWorkerUsage: ((name) => undefined | WorkerUsage)
    @@ -152,7 +152,7 @@

    Returns undefined | WorkerUsage

    +
  • Defined in src/pools/worker.ts:252
  • @@ -160,7 +160,7 @@
    +
  • Defined in src/pools/worker.ts:213
  • resetUsage: (() => void)
    @@ -176,7 +176,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:244
  • tasksQueueSize: (() => number)
    @@ -193,7 +193,7 @@
    +
  • Defined in src/pools/worker.ts:223
  • @@ -201,7 +201,7 @@
    +
  • Defined in src/pools/worker.ts:217
  • worker: Worker
    @@ -209,7 +209,7 @@
    +
  • Defined in src/pools/worker.ts:209
  • +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:65
  • @@ -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
  • @@ -24,7 +24,7 @@
    • MeasurementStatisticsRequirements
    +
  • 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 @@
    • MessageValue
    +
  • Defined in src/utility-types.ts:99
  • @@ -70,7 +70,7 @@
    +
  • Defined in src/utility-types.ts:124
  • data?: Data
    @@ -79,7 +79,7 @@
    +
  • Defined in src/utility-types.ts:77
  • kill?: true | "SOFT" | "HARD"
    @@ -87,7 +87,7 @@
    +
  • Defined in src/utility-types.ts:104
  • name?: string
    @@ -96,7 +96,7 @@
    +
  • Defined in src/utility-types.ts:73
  • port?: MessagePort
    @@ -104,7 +104,7 @@
    +
  • Defined in src/utility-types.ts:128
  • ready?: boolean
    @@ -112,7 +112,7 @@
    +
  • Defined in src/utility-types.ts:120
  • statistics?: WorkerStatistics
    @@ -120,7 +120,7 @@
    +
  • Defined in src/utility-types.ts:116
  • taskError?: TaskError<ErrorData>
    @@ -128,7 +128,7 @@
    +
  • Defined in src/utility-types.ts:108
  • taskId?: string
    @@ -137,7 +137,7 @@
    +
  • Defined in src/utility-types.ts:89
  • taskPerformance?: TaskPerformance
    @@ -145,7 +145,7 @@
    +
  • Defined in src/utility-types.ts:112
  • timestamp?: number
    @@ -154,7 +154,7 @@
    +
  • Defined in src/utility-types.ts:85
  • transferList?: TransferListItem[]
    @@ -163,7 +163,7 @@
    +
  • Defined in src/utility-types.ts:81
  • workerId: number
    @@ -172,7 +172,7 @@
    +
  • Defined in src/utility-types.ts:69
  • @@ -24,7 +24,7 @@
    • PoolInfo
    +
  • Defined in src/pools/pool.ts:60
  • @@ -60,22 +60,22 @@
    +
  • Defined in src/pools/pool.ts:75
  • executedTasks: number
    +
  • Defined in src/pools/pool.ts:76
  • executingTasks: number
    +
  • Defined in src/pools/pool.ts:77
  • failedTasks: number
    +
  • Defined in src/pools/pool.ts:80
  • idleWorkerNodes: number
    @@ -83,32 +83,32 @@
    +
  • Defined in src/pools/pool.ts:73
  • maxQueuedTasks?: number
    +
  • Defined in src/pools/pool.ts:79
  • maxSize: number
    +
  • Defined in src/pools/pool.ts:67
  • minSize: number
    +
  • Defined in src/pools/pool.ts:66
  • queuedTasks?: number
    +
  • Defined in src/pools/pool.ts:78
  • ready: boolean
    +
  • Defined in src/pools/pool.ts:64
  • runTime?: {
        average: number;
        maximum: number;
        median?: number;
        minimum: number;
    }
    @@ -124,17 +124,17 @@
  • Readonly minimum: number
  • +
  • Defined in src/pools/pool.ts:81
  • strategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    +
  • Defined in src/pools/pool.ts:65
  • type: "fixed" | "dynamic"
    +
  • Defined in src/pools/pool.ts:62
  • utilization?: number
    @@ -142,12 +142,12 @@
    +
  • Defined in src/pools/pool.ts:69
  • version: string
    +
  • Defined in src/pools/pool.ts:61
  • waitTime?: {
        average: number;
        maximum: number;
        median?: number;
        minimum: number;
    }
    @@ -163,12 +163,12 @@
  • Readonly minimum: number
  • +
  • Defined in src/pools/pool.ts:87
  • worker: "thread" | "cluster"
    +
  • Defined in src/pools/pool.ts:63
  • workerNodes: number
    @@ -176,7 +176,7 @@
    +
  • Defined in src/pools/pool.ts:71
  • @@ -35,7 +35,7 @@
  • ClusterPoolOptions
  • ThreadPoolOptions
  • +
  • Defined in src/pools/pool.ts:112
  • @@ -65,7 +65,7 @@

    Default Value

    true

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

    Default Value

    false

    +
  • Defined in src/pools/pool.ts:154
  • errorHandler?: ErrorHandler<Worker>
    @@ -83,7 +83,7 @@
    +
  • Defined in src/pools/pool.ts:120
  • exitHandler?: ExitHandler<Worker>
    @@ -91,7 +91,7 @@
    +
  • Defined in src/pools/pool.ts:128
  • messageHandler?: MessageHandler<Worker>
    @@ -99,7 +99,7 @@
    +
  • Defined in src/pools/pool.ts:116
  • onlineHandler?: OnlineHandler<Worker>
    @@ -107,7 +107,7 @@
    +
  • Defined in src/pools/pool.ts:124
  • restartWorkerOnError?: boolean
    @@ -115,7 +115,7 @@
    +
  • Defined in src/pools/pool.ts:142
  • tasksQueueOptions?: TasksQueueOptions
    @@ -123,7 +123,7 @@
    +
  • Defined in src/pools/pool.ts:158
  • 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:134
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -141,7 +141,7 @@
    +
  • Defined in src/pools/pool.ts:138
  • @@ -32,7 +32,7 @@
    • PromiseResponseWrapper
    +
  • Defined in src/utility-types.ts:137
  • @@ -66,7 +66,7 @@

    Returns void

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

    Returns void

    +
  • Defined in src/utility-types.ts:141
  • workerNodeKey: number
    @@ -95,7 +95,7 @@
    +
  • Defined in src/utility-types.ts:149
  • +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:152
  • @@ -34,7 +34,7 @@ +
  • Defined in src/utility-types.ts:65
  • @@ -58,7 +58,7 @@
    +
  • Defined in src/utility-types.ts:77
  • name?: string
    @@ -66,7 +66,7 @@
    +
  • Defined in src/utility-types.ts:73
  • taskId?: string
    @@ -74,7 +74,7 @@
    +
  • Defined in src/utility-types.ts:89
  • timestamp?: number
    @@ -82,7 +82,7 @@
    +
  • Defined in src/utility-types.ts:85
  • transferList?: TransferListItem[]
    @@ -90,7 +90,7 @@
    +
  • Defined in src/utility-types.ts:81
  • workerId: number
    @@ -98,7 +98,7 @@
    +
  • Defined in src/utility-types.ts:69
  • @@ -32,7 +32,7 @@
    • TaskError
    +
  • 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 @@
    • 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
  • @@ -47,7 +47,7 @@
    +
  • Defined in src/pools/worker.ts:86
  • executing: number
    @@ -55,7 +55,7 @@
    +
  • Defined in src/pools/worker.ts:90
  • failed: number
    @@ -63,7 +63,7 @@
    +
  • Defined in src/pools/worker.ts:102
  • maxQueued?: number
    @@ -71,7 +71,7 @@
    +
  • Defined in src/pools/worker.ts:98
  • queued: number
    @@ -79,7 +79,7 @@
    +
  • Defined in src/pools/worker.ts:94
  • @@ -24,7 +24,7 @@
    • TaskStatisticsRequirements
    +
  • 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
  • @@ -61,7 +61,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:136
  • @@ -24,7 +24,7 @@
    • TasksQueueOptions
    +
  • Defined in src/pools/pool.ts:98
  • @@ -45,7 +45,7 @@

    Default Value

    1

    +
  • Defined in src/pools/pool.ts:104
  • @@ -26,7 +26,7 @@
    • ThreadPoolOptions
    +
  • Defined in src/pools/thread/fixed.ts:18
  • @@ -58,7 +58,7 @@
    +
  • Defined in src/pools/pool.ts:148
  • enableTasksQueue?: boolean
    @@ -69,7 +69,7 @@
    +
  • Defined in src/pools/pool.ts:154
  • errorHandler?: ErrorHandler<Worker>
    @@ -78,7 +78,7 @@
    +
  • Defined in src/pools/pool.ts:120
  • exitHandler?: ExitHandler<Worker>
    @@ -87,7 +87,7 @@
    +
  • Defined in src/pools/pool.ts:128
  • messageHandler?: MessageHandler<Worker>
    @@ -96,7 +96,7 @@
    +
  • Defined in src/pools/pool.ts:116
  • onlineHandler?: OnlineHandler<Worker>
    @@ -105,7 +105,7 @@
    +
  • Defined in src/pools/pool.ts:124
  • restartWorkerOnError?: boolean
    @@ -114,7 +114,7 @@
    +
  • Defined in src/pools/pool.ts:142
  • tasksQueueOptions?: TasksQueueOptions
    @@ -123,7 +123,7 @@
    +
  • Defined in src/pools/pool.ts:158
  • 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:134
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -143,7 +143,7 @@
    +
  • Defined in src/pools/pool.ts:138
  • workerOptions?: WorkerOptions
    @@ -153,7 +153,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: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
  • @@ -67,7 +67,7 @@

    Default Value

    { median: false }

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:81
  • @@ -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 @@
    • WorkerInfo
    +
  • Defined in src/pools/worker.ts:123
  • @@ -47,7 +47,7 @@
    +
  • Defined in src/pools/worker.ts:135
  • id: undefined | number
    @@ -55,7 +55,7 @@
    +
  • Defined in src/pools/worker.ts:127
  • messageChannel?: MessageChannel
    @@ -63,7 +63,7 @@
    +
  • Defined in src/pools/worker.ts:143
  • ready: boolean
    @@ -71,7 +71,7 @@
    +
  • Defined in src/pools/worker.ts:139
  • type: "thread" | "cluster"
    @@ -79,7 +79,7 @@
    +
  • Defined in src/pools/worker.ts:131
  • @@ -24,7 +24,7 @@
    • WorkerOptions
    +
  • 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 before completion and remove

    Default Value

    60000

    +
  • Defined in src/worker/worker-options.ts:36
  • @@ -24,7 +24,7 @@
    • WorkerStatistics
    +
  • Defined in src/utility-types.ts:54
  • @@ -41,12 +41,12 @@
    elu: boolean
    +
  • Defined in src/utility-types.ts:56
  • runTime: boolean
    +
  • Defined in src/utility-types.ts:55
  • @@ -24,7 +24,7 @@
    • WorkerUsage
    +
  • Defined in src/pools/worker.ts:151
  • @@ -46,7 +46,7 @@
    +
  • Defined in src/pools/worker.ts:167
  • @@ -54,7 +54,7 @@
    +
  • Defined in src/pools/worker.ts:159
  • @@ -62,7 +62,7 @@
    +
  • Defined in src/pools/worker.ts:155
  • @@ -70,7 +70,7 @@
    +
  • Defined in src/pools/worker.ts:163
  • @@ -40,7 +40,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:16
  • @@ -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
  • @@ -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:8
  • @@ -38,7 +38,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:24
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/pool.ts:55
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/pool.ts:34
  • @@ -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:42
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/worker.ts:116
  • @@ -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
  • @@ -33,7 +33,7 @@
    Readonly taskError: "taskError"
    +
  • Defined in src/pools/pool.ts:44
  • @@ -33,7 +33,7 @@
    +
  • Defined in src/pools/pool.ts:20
  • @@ -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:108