From 5decbf239157d04bdf38a642fe2757f565a8d466 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 4 Jun 2023 14:13:24 +0000 Subject: [PATCH] chore: generate documentation --- docs/classes/AbstractPool.html | 112 +++++++++--------- docs/classes/AbstractWorker.html | 36 +++--- docs/classes/CircularArray.html | 22 ++-- docs/classes/ClusterWorker.html | 30 ++--- docs/classes/DynamicClusterPool.html | 72 +++++------ docs/classes/DynamicThreadPool.html | 72 +++++------ docs/classes/FixedClusterPool.html | 70 +++++------ docs/classes/FixedThreadPool.html | 70 +++++------ docs/classes/PoolEmitter.html | 2 +- docs/classes/Queue.html | 22 ++-- docs/classes/ThreadWorker.html | 30 ++--- docs/classes/WorkerChoiceStrategyContext.html | 20 ++-- docs/interfaces/ClusterPoolOptions.html | 26 ++-- docs/interfaces/IPool.html | 20 ++-- docs/interfaces/IWorker.html | 6 +- docs/interfaces/IWorkerChoiceStrategy.html | 14 +-- docs/interfaces/MessageValue.html | 22 ++-- docs/interfaces/PoolInfo.html | 22 ++-- docs/interfaces/PoolOptions.html | 22 ++-- docs/interfaces/PromiseResponseWrapper.html | 8 +- docs/interfaces/RequiredStatistics.html | 14 +-- docs/interfaces/Task.html | 10 +- docs/interfaces/TasksQueueOptions.html | 4 +- docs/interfaces/TasksUsage.html | 24 ++-- .../WorkerChoiceStrategyOptions.html | 8 +- 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/PoolType.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/types/WorkerType.html | 2 +- docs/variables/KillBehaviors.html | 2 +- docs/variables/PoolEvents.html | 2 +- docs/variables/PoolTypes.html | 2 +- docs/variables/WorkerChoiceStrategies.html | 2 +- docs/variables/WorkerTypes.html | 2 +- 47 files changed, 407 insertions(+), 407 deletions(-) diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html index fefd8138..0fbaae35 100644 --- a/docs/classes/AbstractPool.html +++ b/docs/classes/AbstractPool.html @@ -45,7 +45,7 @@ +
  • Defined in src/pools/abstract-pool.ts:38
  • @@ -153,7 +153,7 @@

    Returns AbstractPool<Worker, Data, Response>

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

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

    Path to the worker file.

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

    Number of workers that this pool should manage.

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

    Options for the pool.

    +
  • Defined in src/pools/abstract-pool.ts:83
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -203,7 +203,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:57
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -211,7 +211,7 @@

    Default to a round robin algorithm.

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

    @@ -232,7 +232,7 @@

    Returns boolean

    +
  • Defined in src/pools/abstract-pool.ts:369
  • +
  • Defined in src/pools/abstract-pool.ts:360
  • +
  • Defined in src/pools/abstract-pool.ts:215
  • +
  • Defined in src/pools/abstract-pool.ts:269
  • +
  • Defined in src/pools/abstract-pool.ts:264
  • +
  • Defined in src/pools/abstract-pool.ts:254
  • +
  • Defined in src/pools/abstract-pool.ts:259
  • Methods

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

    Returns void

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

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

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

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

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

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

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

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

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

    +
  • Defined in src/pools/abstract-pool.ts:181
  • +
  • Defined in src/pools/abstract-pool.ts:532
  • +
  • Defined in src/pools/abstract-pool.ts:596
  • +
  • Defined in src/pools/abstract-pool.ts:580
  • Returns undefined | Task<Data>

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

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

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

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

    +
  • Defined in src/pools/abstract-pool.ts:764
  • +
  • Defined in src/pools/abstract-pool.ts:775
  • +
  • Defined in src/pools/abstract-pool.ts:277
  • +
  • Defined in src/pools/abstract-pool.ts:371
  • +
  • Defined in src/pools/abstract-pool.ts:445
  • +
  • Defined in src/pools/abstract-pool.ts:693
  • Returns void

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

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

    +
  • Defined in src/pools/abstract-pool.ts:562
  • +
  • Defined in src/pools/abstract-pool.ts:337
  • +
  • Defined in src/pools/abstract-pool.ts:284
  • +
  • Defined in src/pools/abstract-pool.ts:314
  • Returns void

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

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

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

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

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

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

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

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

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

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

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

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

    Returns ClusterWorker<Data, Response>

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

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

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

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

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

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

    +
  • Defined in src/worker/abstract-worker.ts:62
  • 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:37
  • Methods

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

    Returns void

    +
  • Defined in src/worker/abstract-worker.ts:182
  • +
  • Defined in src/worker/abstract-worker.ts:165
  • +
  • Defined in src/worker/cluster-worker.ts:55
  • +
  • Defined in src/worker/abstract-worker.ts:141
  • +
  • Defined in src/worker/abstract-worker.ts:240
  • +
  • Defined in src/worker/abstract-worker.ts:207
  • +
  • Defined in src/worker/cluster-worker.ts:50
  • +
  • Defined in src/pools/cluster/dynamic.ts:15
  • @@ -133,7 +133,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:27
  • Properties

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

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

    +
  • Defined in src/pools/cluster/dynamic.ts:29
  • numberOfWorkers: number
    @@ -173,7 +173,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:81
  • opts: ClusterPoolOptions = {}
    @@ -181,7 +181,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/fixed.ts:57
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -194,7 +194,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:57
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -203,7 +203,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:67
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -211,7 +211,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:44
  • Accessors

    @@ -225,7 +225,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:47
  • +
  • Defined in src/pools/abstract-pool.ts:360
  • +
  • Defined in src/pools/abstract-pool.ts:215
  • +
  • Defined in src/pools/cluster/dynamic.ts:42
  • +
  • Defined in src/pools/cluster/fixed.ts:113
  • +
  • Defined in src/pools/cluster/dynamic.ts:37
  • +
  • Defined in src/pools/cluster/fixed.ts:108
  • Methods

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:464
  • +
  • Defined in src/pools/cluster/fixed.ts:97
  • +
  • Defined in src/pools/abstract-pool.ts:453
  • +
  • Defined in src/pools/abstract-pool.ts:532
  • +
  • Defined in src/pools/abstract-pool.ts:596
  • +
  • Defined in src/pools/cluster/fixed.ts:92
  • +
  • Defined in src/pools/abstract-pool.ts:415
  • +
  • Defined in src/pools/cluster/fixed.ts:73
  • +
  • Defined in src/pools/abstract-pool.ts:325
  • +
  • Defined in src/pools/abstract-pool.ts:380
  • +
  • Defined in src/pools/abstract-pool.ts:371
  • +
  • Defined in src/pools/cluster/fixed.ts:68
  • +
  • Defined in src/pools/cluster/fixed.ts:84
  • +
  • Defined in src/pools/cluster/fixed.ts:79
  • +
  • Defined in src/pools/abstract-pool.ts:337
  • +
  • Defined in src/pools/abstract-pool.ts:284
  • +
  • Defined in src/pools/abstract-pool.ts:314
  • +
  • Defined in src/pools/cluster/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:629
  • +
  • Defined in src/pools/abstract-pool.ts:82
  • max: number

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

    +
  • Defined in src/pools/thread/dynamic.ts:29
  • numberOfWorkers: number
    @@ -173,7 +173,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:81
  • opts: PoolOptions<ThreadWorkerWithMessageChannel>
    @@ -181,7 +181,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:83
  • promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    @@ -194,7 +194,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:57
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    @@ -203,7 +203,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:67
  • workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    @@ -211,7 +211,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:44
  • Accessors

    @@ -225,7 +225,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:47
  • +
  • Defined in src/pools/abstract-pool.ts:360
  • +
  • Defined in src/pools/abstract-pool.ts:215
  • +
  • Defined in src/pools/thread/dynamic.ts:42
  • +
  • Defined in src/pools/thread/fixed.ts:110
  • +
  • Defined in src/pools/thread/dynamic.ts:37
  • +
  • Defined in src/pools/thread/fixed.ts:105
  • Methods

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:464
  • +
  • Defined in src/pools/thread/fixed.ts:90
  • +
  • Defined in src/pools/abstract-pool.ts:453
  • +
  • Defined in src/pools/abstract-pool.ts:532
  • +
  • Defined in src/pools/abstract-pool.ts:596
  • +
  • Defined in src/pools/thread/fixed.ts:83
  • +
  • Defined in src/pools/abstract-pool.ts:415
  • +
  • Defined in src/pools/thread/fixed.ts:59
  • +
  • Defined in src/pools/abstract-pool.ts:325
  • +
  • Defined in src/pools/abstract-pool.ts:380
  • +
  • Defined in src/pools/abstract-pool.ts:371
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • +
  • Defined in src/pools/thread/fixed.ts:75
  • +
  • Defined in src/pools/thread/fixed.ts:67
  • +
  • Defined in src/pools/abstract-pool.ts:337
  • +
  • Defined in src/pools/abstract-pool.ts:284
  • +
  • Defined in src/pools/abstract-pool.ts:314
  • +
  • Defined in src/pools/abstract-pool.ts:438
  • +
  • Defined in src/pools/abstract-pool.ts:629
  • +
  • Defined in src/pools/abstract-pool.ts:82
  • numberOfWorkers: number
    @@ -163,7 +163,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:81
  • opts: ClusterPoolOptions = {}
    @@ -171,7 +171,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:57
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -184,7 +184,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:57
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -193,7 +193,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:67
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -201,7 +201,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:44
  • Accessors

    @@ -215,7 +215,7 @@

    Returns boolean

    +
  • Defined in src/pools/cluster/fixed.ts:123
  • +
  • Defined in src/pools/abstract-pool.ts:360
  • +
  • Defined in src/pools/abstract-pool.ts:215
  • +
  • Defined in src/pools/cluster/fixed.ts:118
  • +
  • Defined in src/pools/cluster/fixed.ts:113
  • +
  • Defined in src/pools/cluster/fixed.ts:103
  • +
  • Defined in src/pools/cluster/fixed.ts:108
  • Methods

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:464
  • +
  • Defined in src/pools/cluster/fixed.ts:97
  • +
  • Defined in src/pools/abstract-pool.ts:453
  • +
  • Defined in src/pools/abstract-pool.ts:532
  • +
  • Defined in src/pools/abstract-pool.ts:596
  • +
  • Defined in src/pools/cluster/fixed.ts:92
  • +
  • Defined in src/pools/abstract-pool.ts:415
  • +
  • Defined in src/pools/cluster/fixed.ts:73
  • +
  • Defined in src/pools/abstract-pool.ts:325
  • +
  • Defined in src/pools/abstract-pool.ts:380
  • +
  • Defined in src/pools/abstract-pool.ts:371
  • +
  • Defined in src/pools/cluster/fixed.ts:68
  • +
  • Defined in src/pools/cluster/fixed.ts:84
  • +
  • Defined in src/pools/cluster/fixed.ts:79
  • +
  • Defined in src/pools/abstract-pool.ts:337
  • +
  • Defined in src/pools/abstract-pool.ts:284
  • +
  • Defined in src/pools/abstract-pool.ts:314
  • +
  • Defined in src/pools/cluster/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:629
  • +
  • Defined in src/pools/abstract-pool.ts:82
  • numberOfWorkers: number
    @@ -163,7 +163,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:81
  • opts: PoolOptions<ThreadWorkerWithMessageChannel>
    @@ -171,7 +171,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:83
  • promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    @@ -184,7 +184,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:57
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    @@ -193,7 +193,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:67
  • workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    @@ -201,7 +201,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:44
  • Accessors

    @@ -215,7 +215,7 @@

    Returns boolean

    +
  • Defined in src/pools/thread/fixed.ts:120
  • +
  • Defined in src/pools/abstract-pool.ts:360
  • +
  • Defined in src/pools/abstract-pool.ts:215
  • +
  • Defined in src/pools/thread/fixed.ts:115
  • +
  • Defined in src/pools/thread/fixed.ts:110
  • +
  • Defined in src/pools/thread/fixed.ts:100
  • +
  • Defined in src/pools/thread/fixed.ts:105
  • Methods

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:464
  • +
  • Defined in src/pools/thread/fixed.ts:90
  • +
  • Defined in src/pools/abstract-pool.ts:453
  • +
  • Defined in src/pools/abstract-pool.ts:532
  • +
  • Defined in src/pools/abstract-pool.ts:596
  • +
  • Defined in src/pools/thread/fixed.ts:83
  • +
  • Defined in src/pools/abstract-pool.ts:415
  • +
  • Defined in src/pools/thread/fixed.ts:59
  • +
  • Defined in src/pools/abstract-pool.ts:325
  • +
  • Defined in src/pools/abstract-pool.ts:380
  • +
  • Defined in src/pools/abstract-pool.ts:371
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • +
  • Defined in src/pools/thread/fixed.ts:75
  • +
  • Defined in src/pools/thread/fixed.ts:67
  • +
  • Defined in src/pools/abstract-pool.ts:337
  • +
  • Defined in src/pools/abstract-pool.ts:284
  • +
  • Defined in src/pools/abstract-pool.ts:314
  • +
  • Defined in src/pools/abstract-pool.ts:438
  • +
  • Defined in src/pools/abstract-pool.ts:629
  • +
  • Defined in src/queue.ts:75
  • +
  • Defined in src/worker/abstract-worker.ts:57
  • lastTaskTimestamp: number
    @@ -135,7 +135,7 @@ but the minimum number of workers will be guaranteed.

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

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

    +
  • Defined in src/worker/abstract-worker.ts:62
  • 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:37
  • Methods

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

    Returns void

    +
  • Defined in src/worker/abstract-worker.ts:182
  • +
  • Defined in src/worker/abstract-worker.ts:165
  • +
  • Defined in src/worker/abstract-worker.ts:197
  • +
  • Defined in src/worker/abstract-worker.ts:141
  • +
  • Defined in src/worker/abstract-worker.ts:240
  • +
  • Defined in src/worker/abstract-worker.ts:207
  • +
  • Defined in src/worker/thread-worker.ts:50
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:25
  • @@ -97,21 +97,21 @@

    Returns WorkerChoiceStrategyContext<Worker, Data, Response>

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

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

    The worker choice strategy.

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

    @@ -126,7 +126,7 @@

    Returns number

    The key of the worker node.

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

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

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:117
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:131
  • +
  • Defined in src/pools/pool.ts:142
  • env?: any
    @@ -76,7 +76,7 @@

    See

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

    +
  • Defined in src/pools/cluster/fixed.ts:22
  • errorHandler?: ErrorHandler<Worker>
    @@ -84,7 +84,7 @@
    +
  • Defined in src/pools/pool.ts:108
  • exitHandler?: ExitHandler<Worker>
    @@ -92,7 +92,7 @@
    +
  • Defined in src/pools/pool.ts:116
  • messageHandler?: MessageHandler<Worker>
    @@ -100,7 +100,7 @@
    +
  • Defined in src/pools/pool.ts:104
  • onlineHandler?: OnlineHandler<Worker>
    @@ -108,7 +108,7 @@
    +
  • Defined in src/pools/pool.ts:112
  • restartWorkerOnError?: boolean
    @@ -116,7 +116,7 @@
    +
  • Defined in src/pools/pool.ts:130
  • settings?: ClusterSettings
    @@ -125,7 +125,7 @@

    See

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

    +
  • Defined in src/pools/cluster/fixed.ts:28
  • tasksQueueOptions?: TasksQueueOptions
    @@ -133,7 +133,7 @@
    +
  • Defined in src/pools/pool.ts:146
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    @@ -143,7 +143,7 @@
    +
  • Defined in src/pools/pool.ts:122
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -151,7 +151,7 @@
    +
  • Defined in src/pools/pool.ts:126
  • +
  • Defined in src/pools/pool.ts:191
  • emitter?: PoolEmitter
    @@ -90,7 +90,7 @@
    +
  • Defined in src/pools/pool.ts:179
  • enableTasksQueue: ((enable, tasksQueueOptions?) => void)
    @@ -116,7 +116,7 @@

    Returns void

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

    Returns Promise<Response>

    Promise that will be fulfilled when the task is completed.

    +
  • Defined in src/pools/pool.ts:187
  • info: PoolInfo

    Pool information.

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

    Returns void

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

    Returns void

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

    Returns void

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

    Pool worker nodes.

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

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

    Required tasks usage statistics.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:102
  • 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:108
  • setOptions: ((opts) => void)
    @@ -123,7 +123,7 @@

    Returns void

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:133
  • 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:114
  • +
  • Defined in src/pools/worker.ts:55
  • kill?: 1 | "SOFT" | "HARD"

    Kill code.

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

    Reference to main worker.

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

    Runtime.

    +
  • Defined in src/utility-types.ts:39
  • submissionTimestamp?: number
    @@ -123,14 +123,14 @@
    +
  • Defined in src/pools/worker.ts:51
  • waitTime?: number

    Wait time.

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

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

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

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

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

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

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

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

    +
  • Defined in src/pools/pool.ts:112
  • restartWorkerOnError?: boolean

    Restart worker on error.

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

    Pool worker tasks queue options.

    +
  • Defined in src/pools/pool.ts:146
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    @@ -121,14 +121,14 @@

    Default Value

    WorkerChoiceStrategies.ROUND_ROBIN

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

    The worker choice strategy options.

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

    Returns void

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

    The worker handling the execution.

    +
  • Defined in src/utility-types.ts:118
  • +
  • Defined in src/pools/pool.ts:92
  • +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:53
  • weights?: Record<number, number>
    @@ -64,7 +64,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:60
  • +
  • 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:67
  • +
  • Defined in src/utility-types.ts:56