From 73d8141b526469f4fce46da956280f2b9146accb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 7 May 2023 21:40:33 +0000 Subject: [PATCH] chore: generate documentation --- docs/classes/AbstractPool.html | 106 +++++++++--------- docs/classes/AbstractWorker.html | 36 +++--- docs/classes/CircularArray.html | 22 ++-- docs/classes/ClusterWorker.html | 30 ++--- docs/classes/DynamicClusterPool.html | 70 ++++++------ docs/classes/DynamicThreadPool.html | 70 ++++++------ docs/classes/FixedClusterPool.html | 68 +++++------ docs/classes/FixedThreadPool.html | 68 +++++------ docs/classes/PoolEmitter.html | 2 +- docs/classes/Queue.html | 16 +-- docs/classes/ThreadWorker.html | 30 ++--- docs/classes/WorkerChoiceStrategyContext.html | 22 ++-- docs/enums/PoolType.html | 6 +- docs/interfaces/ClusterPoolOptions.html | 24 ++-- docs/interfaces/IPool.html | 22 ++-- docs/interfaces/IWorker.html | 6 +- docs/interfaces/IWorkerChoiceStrategy.html | 14 +-- docs/interfaces/MessageValue.html | 16 +-- docs/interfaces/PoolOptions.html | 20 ++-- docs/interfaces/PromiseResponseWrapper.html | 8 +- docs/interfaces/RequiredStatistics.html | 8 +- docs/interfaces/Task.html | 8 +- docs/interfaces/TasksQueueOptions.html | 4 +- docs/interfaces/TasksUsage.html | 16 +-- .../WorkerChoiceStrategyOptions.html | 6 +- docs/interfaces/WorkerNode.html | 8 +- docs/interfaces/WorkerOptions.html | 8 +- docs/types/Draft.html | 2 +- docs/types/ErrorHandler.html | 2 +- docs/types/ExitHandler.html | 2 +- docs/types/KillBehavior.html | 2 +- docs/types/MessageHandler.html | 2 +- docs/types/OnlineHandler.html | 2 +- docs/types/PoolEvent.html | 2 +- docs/types/TaskFunctions.html | 2 +- .../types/ThreadWorkerWithMessageChannel.html | 2 +- docs/types/WorkerAsyncFunction.html | 2 +- docs/types/WorkerChoiceStrategy.html | 2 +- docs/types/WorkerFunction.html | 2 +- docs/types/WorkerSyncFunction.html | 2 +- docs/variables/KillBehaviors.html | 2 +- docs/variables/PoolEvents.html | 2 +- docs/variables/WorkerChoiceStrategies.html | 2 +- 43 files changed, 373 insertions(+), 373 deletions(-) diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html index c2a8b653..82bdaf53 100644 --- a/docs/classes/AbstractPool.html +++ b/docs/classes/AbstractPool.html @@ -45,7 +45,7 @@ +
  • Defined in src/pools/abstract-pool.ts:35
  • @@ -150,7 +150,7 @@

    Returns AbstractPool<Worker, Data, Response>

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

    @@ -165,28 +165,28 @@
    +
  • Defined in src/pools/abstract-pool.ts:44
  • filePath: string

    Path to the worker file.

    +
  • Defined in src/pools/abstract-pool.ts:79
  • numberOfWorkers: number

    Number of workers that this pool should manage.

    +
  • Defined in src/pools/abstract-pool.ts:78
  • opts: PoolOptions<Worker>

    Options for the pool.

    +
  • Defined in src/pools/abstract-pool.ts:80
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -198,7 +198,7 @@

    When we receive a message from the worker, we get a map entry with the promise resolve/reject bound to the message id.

    +
  • Defined in src/pools/abstract-pool.ts:54
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -206,7 +206,7 @@

    Default to a round robin algorithm.

    +
  • Defined in src/pools/abstract-pool.ts:64
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -214,7 +214,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:41
  • Accessors

    @@ -227,7 +227,7 @@

    Returns boolean

    +
  • Defined in src/pools/abstract-pool.ts:320
  • +
  • Defined in src/pools/abstract-pool.ts:313
  • +
  • Defined in src/pools/abstract-pool.ts:218
  • +
  • Defined in src/pools/abstract-pool.ts:208
  • +
  • Defined in src/pools/abstract-pool.ts:203
  • +
  • Defined in src/pools/abstract-pool.ts:200
  • Methods

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

    Returns void

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

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

    +
  • Defined in src/pools/abstract-pool.ts:401
  • Returns TasksQueueOptions

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

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

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

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

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

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

    +
  • Defined in src/pools/abstract-pool.ts:174
  • +
  • Defined in src/pools/abstract-pool.ts:446
  • +
  • Defined in src/pools/abstract-pool.ts:509
  • +
  • Defined in src/pools/abstract-pool.ts:493
  • Returns undefined | Task<Data>

    +
  • Defined in src/pools/abstract-pool.ts:647
  • +
  • Defined in src/pools/abstract-pool.ts:364
  • Returns void | Promise<void>

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

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

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

    +
  • Defined in src/pools/abstract-pool.ts:655
  • +
  • Defined in src/pools/abstract-pool.ts:666
  • +
  • Defined in src/pools/abstract-pool.ts:234
  • +
  • Defined in src/pools/abstract-pool.ts:322
  • +
  • Defined in src/pools/abstract-pool.ts:393
  • +
  • Defined in src/pools/abstract-pool.ts:590
  • Returns void

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

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

    +
  • Defined in src/pools/abstract-pool.ts:475
  • +
  • Defined in src/pools/abstract-pool.ts:290
  • +
  • Defined in src/pools/abstract-pool.ts:241
  • +
  • Defined in src/pools/abstract-pool.ts:267
  • Returns void

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

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

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

    +
  • Defined in src/worker/abstract-worker.ts:98
  • Returns void

    +
  • Defined in src/worker/abstract-worker.ts:86
  • +
  • Defined in src/worker/abstract-worker.ts:162
  • Returns WorkerFunction<Data, Response>

    +
  • Defined in src/worker/abstract-worker.ts:261
  • +
  • Defined in src/worker/abstract-worker.ts:194
  • Returns void

    +
  • Defined in src/worker/abstract-worker.ts:138
  • Returns void

    +
  • Defined in src/worker/abstract-worker.ts:231
  • Returns void

    +
  • Defined in src/worker/abstract-worker.ts:204
  • Returns void

    +
  • Defined in src/worker/abstract-worker.ts:174
  • +
  • Defined in src/circular-array.ts:8
  • @@ -112,7 +112,7 @@

    Returns CircularArray<T>

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

    @@ -148,7 +148,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
  • +
  • Defined in src/worker/cluster-worker.ts:25
  • @@ -109,7 +109,7 @@ but the minimum number of workers will be guaranteed.

    Returns ClusterWorker<Data, Response>

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

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

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

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

    +
  • Defined in src/worker/abstract-worker.ts:38
  • mainWorker: undefined | null | Worker
    @@ -143,7 +143,7 @@ but the minimum number of workers will be guaranteed.

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

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

    +
  • Defined in src/worker/abstract-worker.ts:34
  • Methods

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

    Returns void

    +
  • Defined in src/worker/abstract-worker.ts:179
  • +
  • Defined in src/worker/abstract-worker.ts:162
  • +
  • Defined in src/worker/cluster-worker.ts:56
  • +
  • Defined in src/worker/abstract-worker.ts:138
  • +
  • Defined in src/worker/abstract-worker.ts:231
  • +
  • Defined in src/worker/abstract-worker.ts:204
  • +
  • Defined in src/worker/cluster-worker.ts:51
  • +
  • Defined in src/pools/cluster/dynamic.ts:16
  • @@ -132,7 +132,7 @@ When the maximum number of workers is reached and workers are busy, an event is

    Returns DynamicClusterPool<Data, Response>

    +
  • Defined in src/pools/cluster/dynamic.ts:28
  • Properties

    @@ -147,7 +147,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:44
  • filePath: string
    @@ -155,14 +155,14 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:79
  • max: number

    Maximum number of workers that can be created by this pool.

    +
  • Defined in src/pools/cluster/dynamic.ts:30
  • numberOfWorkers: number
    @@ -170,7 +170,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:78
  • opts: ClusterPoolOptions = {}
    @@ -178,7 +178,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/fixed.ts:53
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -191,7 +191,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:54
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -200,7 +200,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:64
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -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:41
  • Accessors

    @@ -222,7 +222,7 @@ When the maximum number of workers is reached and workers are busy, an event is

    Returns boolean

    +
  • Defined in src/pools/cluster/dynamic.ts:53
  • +
  • Defined in src/pools/cluster/dynamic.ts:48
  • +
  • Defined in src/pools/abstract-pool.ts:218
  • +
  • Defined in src/pools/abstract-pool.ts:208
  • +
  • Defined in src/pools/cluster/dynamic.ts:43
  • +
  • Defined in src/pools/cluster/dynamic.ts:38
  • Methods

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:412
  • +
  • Defined in src/pools/cluster/fixed.ts:93
  • +
  • Defined in src/pools/abstract-pool.ts:401
  • +
  • Defined in src/pools/abstract-pool.ts:446
  • +
  • Defined in src/pools/abstract-pool.ts:509
  • +
  • Defined in src/pools/cluster/fixed.ts:88
  • +
  • Defined in src/pools/abstract-pool.ts:364
  • +
  • Defined in src/pools/cluster/fixed.ts:69
  • +
  • Defined in src/pools/abstract-pool.ts:278
  • +
  • Defined in src/pools/abstract-pool.ts:331
  • +
  • Defined in src/pools/abstract-pool.ts:322
  • +
  • Defined in src/pools/cluster/fixed.ts:64
  • +
  • Defined in src/pools/cluster/fixed.ts:80
  • +
  • Defined in src/pools/cluster/fixed.ts:75
  • +
  • Defined in src/pools/abstract-pool.ts:290
  • +
  • Defined in src/pools/abstract-pool.ts:241
  • +
  • Defined in src/pools/abstract-pool.ts:267
  • +
  • Defined in src/pools/cluster/fixed.ts:59
  • +
  • Defined in src/pools/abstract-pool.ts:532
  • +
  • Defined in src/pools/abstract-pool.ts:79
  • max: number

    Maximum number of threads that can be created by this pool.

    +
  • Defined in src/pools/thread/dynamic.ts:31
  • numberOfWorkers: number
    @@ -170,7 +170,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:78
  • opts: PoolOptions<ThreadWorkerWithMessageChannel>
    @@ -178,7 +178,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:80
  • promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    @@ -191,7 +191,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:54
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    @@ -200,7 +200,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:64
  • workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    @@ -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:41
  • Accessors

    @@ -222,7 +222,7 @@ When the maximum number of threads is reached and workers are busy, an event is

    Returns boolean

    +
  • Defined in src/pools/thread/dynamic.ts:54
  • +
  • Defined in src/pools/thread/dynamic.ts:44
  • +
  • Defined in src/pools/abstract-pool.ts:218
  • +
  • Defined in src/pools/abstract-pool.ts:208
  • +
  • Defined in src/pools/thread/dynamic.ts:49
  • +
  • Defined in src/pools/thread/dynamic.ts:39
  • Methods

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:412
  • +
  • Defined in src/pools/thread/fixed.ts:85
  • +
  • Defined in src/pools/abstract-pool.ts:401
  • +
  • Defined in src/pools/abstract-pool.ts:446
  • +
  • Defined in src/pools/abstract-pool.ts:509
  • +
  • Defined in src/pools/thread/fixed.ts:78
  • +
  • Defined in src/pools/abstract-pool.ts:364
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • +
  • Defined in src/pools/abstract-pool.ts:278
  • +
  • Defined in src/pools/abstract-pool.ts:331
  • +
  • Defined in src/pools/abstract-pool.ts:322
  • +
  • Defined in src/pools/thread/fixed.ts:49
  • +
  • Defined in src/pools/thread/fixed.ts:70
  • +
  • Defined in src/pools/thread/fixed.ts:62
  • +
  • Defined in src/pools/abstract-pool.ts:290
  • +
  • Defined in src/pools/abstract-pool.ts:241
  • +
  • Defined in src/pools/abstract-pool.ts:267
  • +
  • Defined in src/pools/abstract-pool.ts:386
  • +
  • Defined in src/pools/abstract-pool.ts:532
  • +
  • Defined in src/pools/abstract-pool.ts:79
  • numberOfWorkers: number
    @@ -160,7 +160,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:78
  • opts: ClusterPoolOptions = {}
    @@ -168,7 +168,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:53
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -181,7 +181,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:54
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -190,7 +190,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:64
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -198,7 +198,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:41
  • Accessors

    @@ -212,7 +212,7 @@

    Returns boolean

    +
  • Defined in src/pools/cluster/fixed.ts:114
  • +
  • Defined in src/pools/cluster/fixed.ts:109
  • +
  • Defined in src/pools/abstract-pool.ts:218
  • +
  • Defined in src/pools/abstract-pool.ts:208
  • +
  • Defined in src/pools/cluster/fixed.ts:104
  • +
  • Defined in src/pools/cluster/fixed.ts:99
  • Methods

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:412
  • +
  • Defined in src/pools/cluster/fixed.ts:93
  • +
  • Defined in src/pools/abstract-pool.ts:401
  • +
  • Defined in src/pools/abstract-pool.ts:446
  • +
  • Defined in src/pools/abstract-pool.ts:509
  • +
  • Defined in src/pools/cluster/fixed.ts:88
  • +
  • Defined in src/pools/abstract-pool.ts:364
  • +
  • Defined in src/pools/cluster/fixed.ts:69
  • +
  • Defined in src/pools/abstract-pool.ts:278
  • +
  • Defined in src/pools/abstract-pool.ts:331
  • +
  • Defined in src/pools/abstract-pool.ts:322
  • +
  • Defined in src/pools/cluster/fixed.ts:64
  • +
  • Defined in src/pools/cluster/fixed.ts:80
  • +
  • Defined in src/pools/cluster/fixed.ts:75
  • +
  • Defined in src/pools/abstract-pool.ts:290
  • +
  • Defined in src/pools/abstract-pool.ts:241
  • +
  • Defined in src/pools/abstract-pool.ts:267
  • +
  • Defined in src/pools/cluster/fixed.ts:59
  • +
  • Defined in src/pools/abstract-pool.ts:532
  • +
  • Defined in src/pools/abstract-pool.ts:79
  • numberOfWorkers: number
    @@ -160,7 +160,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:78
  • opts: PoolOptions<ThreadWorkerWithMessageChannel>
    @@ -168,7 +168,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:80
  • promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    @@ -181,7 +181,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:54
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    @@ -190,7 +190,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:64
  • workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    @@ -198,7 +198,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:41
  • Accessors

    @@ -212,7 +212,7 @@

    Returns boolean

    +
  • Defined in src/pools/thread/fixed.ts:110
  • +
  • Defined in src/pools/thread/fixed.ts:105
  • +
  • Defined in src/pools/abstract-pool.ts:218
  • +
  • Defined in src/pools/abstract-pool.ts:208
  • +
  • Defined in src/pools/thread/fixed.ts:100
  • +
  • Defined in src/pools/thread/fixed.ts:95
  • Methods

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:412
  • +
  • Defined in src/pools/thread/fixed.ts:85
  • +
  • Defined in src/pools/abstract-pool.ts:401
  • +
  • Defined in src/pools/abstract-pool.ts:446
  • +
  • Defined in src/pools/abstract-pool.ts:509
  • +
  • Defined in src/pools/thread/fixed.ts:78
  • +
  • Defined in src/pools/abstract-pool.ts:364
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • +
  • Defined in src/pools/abstract-pool.ts:278
  • +
  • Defined in src/pools/abstract-pool.ts:331
  • +
  • Defined in src/pools/abstract-pool.ts:322
  • +
  • Defined in src/pools/thread/fixed.ts:49
  • +
  • Defined in src/pools/thread/fixed.ts:70
  • +
  • Defined in src/pools/thread/fixed.ts:62
  • +
  • Defined in src/pools/abstract-pool.ts:290
  • +
  • Defined in src/pools/abstract-pool.ts:241
  • +
  • Defined in src/pools/abstract-pool.ts:267
  • +
  • Defined in src/pools/abstract-pool.ts:386
  • +
  • Defined in src/pools/abstract-pool.ts:532
  • +
  • Defined in src/worker/abstract-worker.ts:54
  • lastTaskTimestamp: number
    @@ -135,7 +135,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:38
  • mainWorker: undefined | null | MessagePort
    @@ -143,7 +143,7 @@ but the minimum number of workers will be guaranteed.

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

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

    +
  • Defined in src/worker/abstract-worker.ts:34
  • Methods

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

    Returns void

    +
  • Defined in src/worker/abstract-worker.ts:179
  • +
  • Defined in src/worker/abstract-worker.ts:162
  • +
  • Defined in src/worker/abstract-worker.ts:194
  • +
  • Defined in src/worker/abstract-worker.ts:138
  • +
  • Defined in src/worker/abstract-worker.ts:231
  • +
  • Defined in src/worker/abstract-worker.ts:204
  • +
  • Defined in src/worker/thread-worker.ts:51
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:24
  • @@ -97,21 +97,21 @@

    Returns WorkerChoiceStrategyContext<Worker, Data, Response>

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

    workerChoiceStrategies: Map<"ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN", IWorkerChoiceStrategy>
    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:29
  • workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN

    The worker choice strategy.

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

    @@ -121,12 +121,12 @@
  • Executes the worker choice strategy algorithm in the context.

    -

    Throws

    @node/api/errors.html#class-error If the worker node key is null or undefined.

    +

    Throws

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

    Returns number

    The key of the worker node.

  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:136
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:95
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:154
  • Returns void

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:167
  • Returns void

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:108
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:122
  • +
  • Defined in src/pools/pool.ts:105
  • env?: any
    @@ -75,7 +75,7 @@

    See

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

    +
  • Defined in src/pools/cluster/fixed.ts:18
  • errorHandler?: ErrorHandler<Worker>
    @@ -83,7 +83,7 @@
    +
  • Defined in src/pools/pool.ts:75
  • exitHandler?: ExitHandler<Worker>
    @@ -91,7 +91,7 @@
    +
  • Defined in src/pools/pool.ts:83
  • messageHandler?: MessageHandler<Worker>
    @@ -99,7 +99,7 @@
    +
  • Defined in src/pools/pool.ts:71
  • onlineHandler?: OnlineHandler<Worker>
    @@ -107,7 +107,7 @@
    +
  • Defined in src/pools/pool.ts:79
  • settings?: ClusterSettings
    @@ -116,7 +116,7 @@

    See

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

    +
  • Defined in src/pools/cluster/fixed.ts:24
  • tasksQueueOptions?: TasksQueueOptions
    @@ -124,7 +124,7 @@
    +
  • Defined in src/pools/pool.ts:109
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
    @@ -134,7 +134,7 @@
    +
  • Defined in src/pools/pool.ts:89
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -142,7 +142,7 @@
    +
  • Defined in src/pools/pool.ts:93
  • +
  • Defined in src/pools/pool.ts:158
  • emitter?: PoolEmitter
    @@ -89,7 +89,7 @@
    +
  • Defined in src/pools/pool.ts:146
  • enableTasksQueue: ((enable, tasksQueueOptions?) => void)
    @@ -115,7 +115,7 @@

    Returns void

    +
  • Defined in src/pools/pool.ts:183
  • execute: ((data?, name?) => Promise<Response>)
    @@ -142,7 +142,7 @@

    Returns Promise<Response>

    Promise that will be fulfilled when the task is completed.

    +
  • Defined in src/pools/pool.ts:154
  • setTasksQueueOptions: ((tasksQueueOptions) => void)
    @@ -164,7 +164,7 @@

    Returns void

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

    Returns void

    +
  • Defined in src/pools/pool.ts:165
  • setWorkerChoiceStrategyOptions: ((workerChoiceStrategyOptions) => void)
    @@ -212,14 +212,14 @@

    Returns void

    +
  • Defined in src/pools/pool.ts:174
  • size: number

    Pool maximum size.

    +
  • Defined in src/pools/pool.ts:133
  • type: PoolType
    @@ -227,14 +227,14 @@

    If it is 'dynamic', it provides the max property.

    +
  • Defined in src/pools/pool.ts:129
  • workerNodes: WorkerNode<Worker, Data>[]

    Pool worker nodes.

    +
  • Defined in src/pools/pool.ts:137
  • Returns void

    +
  • Defined in src/pools/worker.ts:110
  • +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:103
  • requiredStatistics: RequiredStatistics

    Required tasks usage statistics.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:78
  • reset: (() => boolean)
    @@ -101,7 +101,7 @@

    Returns boolean

    true if the reset is successful, false otherwise.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:84
  • setOptions: ((opts) => void)
    @@ -123,7 +123,7 @@

    Returns void

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:109
  • update: ((workerNodeKey) => boolean)
    @@ -144,7 +144,7 @@

    Returns boolean

    true if the update is successful, false otherwise.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:90
  • +
  • Defined in src/pools/worker.ts:51
  • kill?: 1 | "SOFT" | "HARD"

    Kill code.

    +
  • Defined in src/utility-types.ts:27
  • name?: string
    @@ -91,21 +91,21 @@
    +
  • Defined in src/pools/worker.ts:43
  • parent?: MainWorker

    Reference to main worker.

    +
  • Defined in src/utility-types.ts:39
  • runTime?: number

    Runtime.

    +
  • Defined in src/utility-types.ts:35
  • +
  • Defined in src/pools/pool.ts:105
  • errorHandler?: ErrorHandler<Worker>

    A function that will listen for error event on each worker.

    +
  • Defined in src/pools/pool.ts:75
  • exitHandler?: ExitHandler<Worker>

    A function that will listen for exit event on each worker.

    +
  • Defined in src/pools/pool.ts:83
  • messageHandler?: MessageHandler<Worker>

    A function that will listen for message event on each worker.

    +
  • Defined in src/pools/pool.ts:71
  • onlineHandler?: OnlineHandler<Worker>

    A function that will listen for online event on each worker.

    +
  • Defined in src/pools/pool.ts:79
  • tasksQueueOptions?: TasksQueueOptions

    Pool worker tasks queue options.

    +
  • Defined in src/pools/pool.ts:109
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
    @@ -113,14 +113,14 @@

    Default Value

    WorkerChoiceStrategies.ROUND_ROBIN

    +
  • Defined in src/pools/pool.ts:89
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions

    The worker choice strategy options.

    +
  • Defined in src/pools/pool.ts:93
  • +
  • Defined in src/utility-types.ts:106
  • resolve: ((value) => void)
    @@ -87,14 +87,14 @@
    value: Response

    Returns void

    +
  • Defined in src/utility-types.ts:102
  • worker: Worker

    The worker handling the execution.

    +
  • Defined in src/utility-types.ts:110
  • +
  • Defined in src/pools/pool.ts:59
  • +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:48
  • +
  • Defined in src/worker/worker-options.ts:69
  • maxInactiveTime?: number
    @@ -77,7 +77,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:51
  • +
  • Defined in src/pools/worker.ts:15
  • +
  • Defined in src/pools/worker.ts:28
  • +
  • Defined in src/pools/worker.ts:7
  • +
  • Defined in src/pools/worker.ts:23
  • +
  • Defined in src/utility-types.ts:59
  • +
  • Defined in src/utility-types.ts:48