From: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 15 Apr 2023 12:14:38 +0000 (+0000) Subject: chore: generate documentation X-Git-Tag: v2.4.9~11^2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a8aeac440fb425585a0d597af86f616e648ae156;p=poolifier.git chore: generate documentation --- diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html index 4f1fb233..d5c7d4f1 100644 --- a/docs/classes/AbstractPool.html +++ b/docs/classes/AbstractPool.html @@ -45,7 +45,7 @@ +
  • Defined in src/pools/abstract-pool.ts:33
  • @@ -150,7 +150,7 @@

    Returns AbstractPool<Worker, Data, Response>

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

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

    Path to the worker-file.

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

    Number of workers that this pool should manage.

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

    Options for the pool.

    +
  • Defined in src/pools/abstract-pool.ts:78
  • 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:52
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -206,7 +206,7 @@

    Default to a round robin algorithm.

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

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

    Returns boolean

    +
  • Defined in src/pools/abstract-pool.ts:294
  • +
  • Defined in src/pools/abstract-pool.ts:287
  • +
  • Defined in src/pools/abstract-pool.ts:195
  • +
  • Defined in src/pools/abstract-pool.ts:185
  • +
  • Defined in src/pools/abstract-pool.ts:180
  • Methods

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

    Returns void

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

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

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

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

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

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

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

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

    +
  • Defined in src/pools/abstract-pool.ts:157
  • +
  • Defined in src/pools/abstract-pool.ts:420
  • +
  • Defined in src/pools/abstract-pool.ts:482
  • +
  • Defined in src/pools/abstract-pool.ts:466
  • Returns undefined | Task<Data>

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

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

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

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

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

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

    +
  • Defined in src/pools/abstract-pool.ts:211
  • Returns undefined | TasksUsage

    +
  • Defined in src/pools/abstract-pool.ts:564
  • +
  • Defined in src/pools/abstract-pool.ts:296
  • +
  • Defined in src/pools/abstract-pool.ts:368
  • Returns number

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

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

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

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

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

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

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

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

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

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

    +
  • Defined in src/worker/abstract-worker.ts:105
  • +
  • Defined in src/worker/abstract-worker.ts:136
  • Returns string

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

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

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

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

    +
  • Defined in src/worker/abstract-worker.ts:148
  • +
  • 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:84
  • +
  • Defined in src/circular-array.ts:36
  • +
  • Defined in src/circular-array.ts:76
  • +
  • Defined in src/circular-array.ts:80
  • +
  • Defined in src/circular-array.ts:20
  • Returns void

    +
  • Defined in src/circular-array.ts:64
  • +
  • Defined in src/circular-array.ts:50
  • +
  • Defined in src/circular-array.ts:28
  • +
  • Defined in src/worker/cluster-worker.ts:21
  • @@ -119,7 +119,7 @@ but the minimum number of workers will be guaranteed.

    Returns ClusterWorker<Data, Response>

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

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

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

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

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

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

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

    @@ -213,7 +213,7 @@ the AsyncResource to which the function is bound.

    Returns void

    +
  • Defined in src/worker/abstract-worker.ts:153
  • +
  • Defined in src/worker/abstract-worker.ts:136
  • +
  • Defined in src/worker/cluster-worker.ts:50
  • +
  • Defined in src/worker/abstract-worker.ts:84
  • +
  • Defined in src/worker/abstract-worker.ts:178
  • +
  • Defined in src/worker/abstract-worker.ts:205
  • +
  • Defined in src/worker/cluster-worker.ts:45
  • +
  • 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:42
  • 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:77
  • 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:76
  • 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:52
  • 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:62
  • 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:39
  • 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:48
  • +
  • Defined in src/pools/cluster/dynamic.ts:43
  • +
  • Defined in src/pools/abstract-pool.ts:195
  • +
  • Defined in src/pools/abstract-pool.ts:185
  • +
  • Defined in src/pools/cluster/dynamic.ts:38
  • Methods

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:387
  • +
  • Defined in src/pools/cluster/fixed.ts:93
  • +
  • Defined in src/pools/abstract-pool.ts:376
  • +
  • Defined in src/pools/abstract-pool.ts:420
  • +
  • Defined in src/pools/abstract-pool.ts:482
  • +
  • Defined in src/pools/cluster/fixed.ts:88
  • +
  • Defined in src/pools/abstract-pool.ts:339
  • +
  • Defined in src/pools/cluster/fixed.ts:69
  • +
  • Defined in src/pools/abstract-pool.ts:254
  • +
  • Defined in src/pools/abstract-pool.ts:308
  • +
  • Defined in src/pools/abstract-pool.ts:301
  • +
  • Defined in src/pools/abstract-pool.ts:296
  • +
  • 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:265
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:218
  • +
  • Defined in src/pools/abstract-pool.ts:244
  • +
  • Defined in src/pools/cluster/fixed.ts:59
  • +
  • Defined in src/pools/abstract-pool.ts:505
  • +
  • Defined in src/pools/abstract-pool.ts:77
  • 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:76
  • 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:78
  • 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:52
  • 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:62
  • 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:39
  • 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:49
  • +
  • Defined in src/pools/thread/dynamic.ts:44
  • +
  • Defined in src/pools/abstract-pool.ts:195
  • +
  • Defined in src/pools/abstract-pool.ts:185
  • +
  • Defined in src/pools/thread/dynamic.ts:39
  • Methods

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:387
  • +
  • Defined in src/pools/thread/fixed.ts:85
  • +
  • Defined in src/pools/abstract-pool.ts:376
  • +
  • Defined in src/pools/abstract-pool.ts:420
  • +
  • Defined in src/pools/abstract-pool.ts:482
  • +
  • Defined in src/pools/thread/fixed.ts:78
  • +
  • Defined in src/pools/abstract-pool.ts:339
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • +
  • Defined in src/pools/abstract-pool.ts:254
  • +
  • Defined in src/pools/abstract-pool.ts:308
  • +
  • Defined in src/pools/abstract-pool.ts:301
  • +
  • Defined in src/pools/abstract-pool.ts:296
  • +
  • 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:265
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:218
  • +
  • Defined in src/pools/abstract-pool.ts:244
  • +
  • Defined in src/pools/abstract-pool.ts:361
  • +
  • Defined in src/pools/abstract-pool.ts:505
  • +
  • Defined in src/pools/abstract-pool.ts:77
  • numberOfWorkers: number
    @@ -160,7 +160,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:76
  • 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:52
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -190,7 +190,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:62
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -198,7 +198,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:39
  • Accessors

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

    Returns boolean

    +
  • Defined in src/pools/cluster/fixed.ts:109
  • +
  • Defined in src/pools/cluster/fixed.ts:104
  • +
  • Defined in src/pools/abstract-pool.ts:195
  • +
  • Defined in src/pools/abstract-pool.ts:185
  • +
  • Defined in src/pools/cluster/fixed.ts:99
  • Methods

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:387
  • +
  • Defined in src/pools/cluster/fixed.ts:93
  • +
  • Defined in src/pools/abstract-pool.ts:376
  • +
  • Defined in src/pools/abstract-pool.ts:420
  • +
  • Defined in src/pools/abstract-pool.ts:482
  • +
  • Defined in src/pools/cluster/fixed.ts:88
  • +
  • Defined in src/pools/abstract-pool.ts:339
  • +
  • Defined in src/pools/cluster/fixed.ts:69
  • +
  • Defined in src/pools/abstract-pool.ts:254
  • +
  • Defined in src/pools/abstract-pool.ts:308
  • +
  • Defined in src/pools/abstract-pool.ts:301
  • +
  • Defined in src/pools/abstract-pool.ts:296
  • +
  • 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:265
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:218
  • +
  • Defined in src/pools/abstract-pool.ts:244
  • +
  • Defined in src/pools/cluster/fixed.ts:59
  • +
  • Defined in src/pools/abstract-pool.ts:505
  • +
  • Defined in src/pools/abstract-pool.ts:77
  • numberOfWorkers: number
    @@ -160,7 +160,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:76
  • opts: PoolOptions<ThreadWorkerWithMessageChannel>
    @@ -168,7 +168,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:78
  • promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    @@ -181,7 +181,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:52
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    @@ -190,7 +190,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:62
  • workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    @@ -198,7 +198,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:39
  • Accessors

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

    Returns boolean

    +
  • Defined in src/pools/thread/fixed.ts:105
  • +
  • Defined in src/pools/thread/fixed.ts:100
  • +
  • Defined in src/pools/abstract-pool.ts:195
  • +
  • Defined in src/pools/abstract-pool.ts:185
  • +
  • Defined in src/pools/thread/fixed.ts:95
  • Methods

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:387
  • +
  • Defined in src/pools/thread/fixed.ts:85
  • +
  • Defined in src/pools/abstract-pool.ts:376
  • +
  • Defined in src/pools/abstract-pool.ts:420
  • +
  • Defined in src/pools/abstract-pool.ts:482
  • +
  • Defined in src/pools/thread/fixed.ts:78
  • +
  • Defined in src/pools/abstract-pool.ts:339
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • +
  • Defined in src/pools/abstract-pool.ts:254
  • +
  • Defined in src/pools/abstract-pool.ts:308
  • +
  • Defined in src/pools/abstract-pool.ts:301
  • +
  • Defined in src/pools/abstract-pool.ts:296
  • +
  • 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:265
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:218
  • +
  • Defined in src/pools/abstract-pool.ts:244
  • +
  • Defined in src/pools/abstract-pool.ts:361
  • +
  • Defined in src/pools/abstract-pool.ts:505
  • +
  • Defined in src/worker/abstract-worker.ts:43
  • lastTaskTimestamp: number
    @@ -145,7 +145,7 @@ but the minimum number of workers will be guaranteed.

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

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

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

    @@ -213,7 +213,7 @@ the AsyncResource to which the function is bound.

    Returns void

    +
  • Defined in src/worker/abstract-worker.ts:153
  • +
  • Defined in src/worker/abstract-worker.ts:136
  • +
  • Defined in src/worker/abstract-worker.ts:168
  • +
  • Defined in src/worker/abstract-worker.ts:84
  • +
  • Defined in src/worker/abstract-worker.ts:178
  • +
  • Defined in src/worker/abstract-worker.ts:205
  • +
  • Defined in src/worker/thread-worker.ts:39
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:24
  • @@ -96,21 +96,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

    @@ -124,7 +124,7 @@

    Returns number

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:109
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:82
  • Returns boolean

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

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

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:95
  • +
  • Defined in src/pools/pool.ts:103
  • 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:107
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
    @@ -132,7 +132,7 @@
    +
  • Defined in src/pools/pool.ts:87
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -140,7 +140,7 @@
    +
  • Defined in src/pools/pool.ts:91
  • +
  • Defined in src/pools/pool.ts:161
  • emitter?: PoolEmitter
    @@ -89,7 +89,7 @@
    +
  • Defined in src/pools/pool.ts:140
  • enableTasksQueue: ((enable: boolean, opts?: TasksQueueOptions) => void)
    @@ -113,7 +113,7 @@
    Optional opts: TasksQueueOptions

    Returns void

    +
  • Defined in src/pools/pool.ts:186
  • execute: ((data: Data) => Promise<Response>)
    @@ -137,7 +137,7 @@

    Returns Promise<Response>

    +
  • Defined in src/pools/pool.ts:157
  • findFreeWorkerNodeKey: (() => number)
    @@ -156,7 +156,7 @@

    Returns number

    +
  • Defined in src/pools/pool.ts:150
  • setTasksQueueOptions: ((tasksQueueOptions: TasksQueueOptions) => void)
    @@ -178,16 +178,16 @@

    Returns void

    +
  • Defined in src/pools/pool.ts:192
  • -
    setWorkerChoiceStrategy: ((workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN") => void)
    +
    setWorkerChoiceStrategy: ((workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN", workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions) => void)

    Type declaration

    Returns void

    +
  • Defined in src/pools/pool.ts:168
  • setWorkerChoiceStrategyOptions: ((workerChoiceStrategyOptions: WorkerChoiceStrategyOptions) => void)
    @@ -222,7 +226,7 @@

    Returns void

    +
  • Defined in src/pools/pool.ts:177
  • type: PoolType
    @@ -230,14 +234,14 @@

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

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

    Pool worker nodes.

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

    +
  • Defined in src/pools/worker.ts:105
  • +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:77
  • remove: ((workerNodeKey: number) => boolean)
    @@ -75,14 +75,14 @@

    Returns boolean

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

    Required tasks usage statistics.

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

    Returns boolean

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

    Returns void

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

    Kill code.

    +
  • Defined in src/utility-types.ts:27
  • 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:103
  • 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:107
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"

    The worker choice strategy to use in this pool.

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

    The worker choice strategy options.

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

    Returns void

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

    The worker handling the execution.

    +
  • Defined in src/utility-types.ts:64
  • +
  • Defined in src/pools/pool.ts:59
  • +
  • Defined in src/worker/worker-options.ts:68
  • maxInactiveTime?: number
    @@ -75,7 +75,7 @@ when this timeout expires your tasks is interrupted and the worker is killed if

    Default Value

    60000 ms

    +
  • Defined in src/worker/worker-options.ts:51
  • +
  • Defined in src/pools/worker.ts:14
  • +
  • Defined in src/pools/worker.ts:27
  • +
  • Defined in src/pools/worker.ts:6
  • +
  • Defined in src/pools/worker.ts:22