From: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 4 May 2023 22:38:14 +0000 (+0000) Subject: chore: generate documentation X-Git-Tag: v2.4.12~18^2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=67de15a041152a973334839ad2c73284b1b3cbb3;p=poolifier.git chore: generate documentation --- diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html index 5b462f28..17d18328 100644 --- a/docs/classes/AbstractPool.html +++ b/docs/classes/AbstractPool.html @@ -45,7 +45,7 @@ +
  • Defined in src/pools/abstract-pool.ts:34
  • @@ -150,7 +150,7 @@

    Returns AbstractPool<Worker, Data, Response>

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

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

    Path to the worker file.

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

    Number of workers that this pool should manage.

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

    Options for the pool.

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

    Default to a round robin algorithm.

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

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

    Returns boolean

    +
  • Defined in src/pools/abstract-pool.ts:297
  • +
  • Defined in src/pools/abstract-pool.ts:290
  • +
  • Defined in src/pools/abstract-pool.ts:196
  • +
  • Defined in src/pools/abstract-pool.ts:186
  • +
  • Defined in src/pools/abstract-pool.ts:181
  • 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:277
  • +
  • Defined in src/pools/abstract-pool.ts:533
  • Returns void

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

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

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

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

    +
  • Defined in src/pools/abstract-pool.ts:158
  • +
  • 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:255
  • 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
  • Returns void

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

    +
  • Defined in src/pools/abstract-pool.ts:654
  • +
  • Defined in src/pools/abstract-pool.ts:659
  • +
  • Defined in src/pools/abstract-pool.ts:212
  • +
  • Defined in src/pools/abstract-pool.ts:564
  • +
  • Defined in src/pools/abstract-pool.ts:299
  • +
  • Defined in src/pools/abstract-pool.ts:368
  • +
  • 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:267
  • +
  • Defined in src/pools/abstract-pool.ts:219
  • +
  • Defined in src/pools/abstract-pool.ts:245
  • 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
  • +
  • Defined in src/pools/abstract-pool.ts:505
  • Returns void

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

    +
  • Defined in src/worker/abstract-worker.ts:83
  • +
  • Defined in src/worker/abstract-worker.ts:139
  • +
  • Defined in src/worker/abstract-worker.ts:171
  • Returns void

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

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

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

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

    Returns ClusterWorker<Data, Response>

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

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

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

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

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

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

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

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

    Returns void

    +
  • Defined in src/worker/abstract-worker.ts:156
  • +
  • Defined in src/worker/abstract-worker.ts:139
  • +
  • Defined in src/worker/cluster-worker.ts:50
  • +
  • Defined in src/worker/abstract-worker.ts:113
  • +
  • Defined in src/worker/abstract-worker.ts:181
  • +
  • Defined in src/worker/abstract-worker.ts:208
  • +
  • Defined in src/worker/cluster-worker.ts:45
  • +
  • Defined in src/pools/cluster/dynamic.ts:16
  • @@ -131,7 +131,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

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

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

    +
  • Defined in src/pools/cluster/dynamic.ts:30
  • numberOfWorkers: number
    @@ -169,7 +169,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:77
  • opts: ClusterPoolOptions = {}
    @@ -177,7 +177,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>> = ...
    @@ -190,7 +190,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:53
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -199,7 +199,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:63
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -207,7 +207,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:40
  • Accessors

    @@ -221,7 +221,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:196
  • +
  • Defined in src/pools/abstract-pool.ts:186
  • +
  • Defined in src/pools/cluster/dynamic.ts:38
  • Methods

    @@ -292,7 +292,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:255
  • +
  • Defined in src/pools/abstract-pool.ts:308
  • +
  • Defined in src/pools/abstract-pool.ts:299
  • +
  • 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:267
  • +
  • Defined in src/pools/abstract-pool.ts:219
  • +
  • Defined in src/pools/abstract-pool.ts:245
  • +
  • Defined in src/pools/cluster/fixed.ts:59
  • +
  • Defined in src/pools/abstract-pool.ts:505
  • +
  • Defined in src/pools/abstract-pool.ts:78
  • max: number

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

    +
  • Defined in src/pools/thread/dynamic.ts:31
  • numberOfWorkers: number
    @@ -169,7 +169,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:77
  • opts: PoolOptions<ThreadWorkerWithMessageChannel>
    @@ -177,7 +177,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:79
  • promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    @@ -190,7 +190,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:53
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    @@ -199,7 +199,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:63
  • workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    @@ -207,7 +207,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:40
  • Accessors

    @@ -221,7 +221,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:196
  • +
  • Defined in src/pools/abstract-pool.ts:186
  • +
  • Defined in src/pools/thread/dynamic.ts:39
  • Methods

    @@ -292,7 +292,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:255
  • +
  • Defined in src/pools/abstract-pool.ts:308
  • +
  • Defined in src/pools/abstract-pool.ts:299
  • +
  • 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:267
  • +
  • Defined in src/pools/abstract-pool.ts:219
  • +
  • Defined in src/pools/abstract-pool.ts:245
  • +
  • Defined in src/pools/abstract-pool.ts:361
  • +
  • Defined in src/pools/abstract-pool.ts:505
  • +
  • Defined in src/pools/abstract-pool.ts:78
  • numberOfWorkers: number
    @@ -159,7 +159,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:77
  • opts: ClusterPoolOptions = {}
    @@ -167,7 +167,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:53
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -180,7 +180,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:53
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -189,7 +189,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:63
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -197,7 +197,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:40
  • Accessors

    @@ -211,7 +211,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:196
  • +
  • Defined in src/pools/abstract-pool.ts:186
  • +
  • Defined in src/pools/cluster/fixed.ts:99
  • Methods

    @@ -282,7 +282,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:255
  • +
  • Defined in src/pools/abstract-pool.ts:308
  • +
  • Defined in src/pools/abstract-pool.ts:299
  • +
  • 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:267
  • +
  • Defined in src/pools/abstract-pool.ts:219
  • +
  • Defined in src/pools/abstract-pool.ts:245
  • +
  • Defined in src/pools/cluster/fixed.ts:59
  • +
  • Defined in src/pools/abstract-pool.ts:505
  • +
  • Defined in src/pools/abstract-pool.ts:78
  • numberOfWorkers: number
    @@ -159,7 +159,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:77
  • opts: PoolOptions<ThreadWorkerWithMessageChannel>
    @@ -167,7 +167,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:79
  • promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    @@ -180,7 +180,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:53
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    @@ -189,7 +189,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:63
  • workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    @@ -197,7 +197,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:40
  • Accessors

    @@ -211,7 +211,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:196
  • +
  • Defined in src/pools/abstract-pool.ts:186
  • +
  • Defined in src/pools/thread/fixed.ts:95
  • Methods

    @@ -282,7 +282,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:255
  • +
  • Defined in src/pools/abstract-pool.ts:308
  • +
  • Defined in src/pools/abstract-pool.ts:299
  • +
  • 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:267
  • +
  • Defined in src/pools/abstract-pool.ts:219
  • +
  • Defined in src/pools/abstract-pool.ts:245
  • +
  • Defined in src/pools/abstract-pool.ts:361
  • +
  • Defined in src/pools/abstract-pool.ts:505
  • +
  • Defined in src/queue.ts:35
  • +
  • Defined in src/worker/abstract-worker.ts:48
  • lastTaskTimestamp: number
    @@ -134,7 +134,7 @@ but the minimum number of workers will be guaranteed.

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

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

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

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

    Returns void

    +
  • Defined in src/worker/abstract-worker.ts:156
  • +
  • Defined in src/worker/abstract-worker.ts:139
  • +
  • Defined in src/worker/abstract-worker.ts:171
  • +
  • Defined in src/worker/abstract-worker.ts:113
  • +
  • Defined in src/worker/abstract-worker.ts:181
  • +
  • Defined in src/worker/abstract-worker.ts:208
  • +
  • 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

    @@ -123,7 +123,7 @@

    Returns number

    The key of the worker node.

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:122
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:95
  • +
  • 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:149
  • Returns void

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:108
  • +
  • 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:153
  • emitter?: PoolEmitter
    @@ -88,7 +88,7 @@
    +
  • Defined in src/pools/pool.ts:142
  • enableTasksQueue: ((enable, tasksQueueOptions?) => void)
    @@ -114,7 +114,7 @@

    Returns void

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

    Returns Promise<Response>

    Promise that will be fulfilled when the task is completed.

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

    Returns void

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

    Returns void

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

    Returns void

    +
  • Defined in src/pools/pool.ts:169
  • type: PoolType
    @@ -215,14 +215,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:133
  • Returns void

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

    Returns boolean

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

    Required tasks usage statistics.

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

    Returns boolean

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

    Returns void

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:91
  • +
  • Defined in src/pools/worker.ts:47
  • 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: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:90
  • resolve: ((value) => void)
    @@ -87,14 +87,14 @@
    value: Response

    Returns void

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

    The worker handling the execution.

    +
  • Defined in src/utility-types.ts:94
  • +
  • Defined in src/pools/pool.ts:59
  • +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:41
  • +
  • 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

    +
  • 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:58
  • +
  • Defined in src/utility-types.ts:48