From: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 23 Apr 2023 10:21:01 +0000 (+0000) Subject: chore: generate documentation X-Git-Tag: v2.4.11~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=65ec4e64a4690b019d3ef86c97aa7182b715f539;p=poolifier.git chore: generate documentation --- diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html index 9d036250..5b3d2996 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:296
  • +
  • Defined in src/pools/abstract-pool.ts:289
  • +
  • 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:386
  • Returns void

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

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

    +
  • Defined in src/pools/abstract-pool.ts:276
  • +
  • Defined in src/pools/abstract-pool.ts:532
  • 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:419
  • +
  • Defined in src/pools/abstract-pool.ts:481
  • +
  • Defined in src/pools/abstract-pool.ts:465
  • Returns undefined | Task<Data>

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

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

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

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

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

    +
  • Defined in src/pools/abstract-pool.ts:650
  • +
  • Defined in src/pools/abstract-pool.ts:655
  • +
  • Defined in src/pools/abstract-pool.ts:211
  • +
  • Defined in src/pools/abstract-pool.ts:563
  • +
  • Defined in src/pools/abstract-pool.ts:298
  • +
  • Defined in src/pools/abstract-pool.ts:367
  • +
  • Defined in src/pools/abstract-pool.ts:577
  • Returns void

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

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

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

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

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

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

    +
  • Defined in src/worker/abstract-worker.ts:83
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/async_hooks.d.ts:311
  • +
  • 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
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/async_hooks.d.ts:303
  • Returns void

    +
  • Defined in src/worker/abstract-worker.ts:151
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/async_hooks.d.ts:320
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/async_hooks.d.ts:273
  • 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

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

    +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/async_hooks.d.ts:315
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/async_hooks.d.ts:288
  • +
  • Defined in src/worker/abstract-worker.ts:156
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/async_hooks.d.ts:311
  • +
  • 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 node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/async_hooks.d.ts:303
  • +
  • Defined in src/worker/cluster-worker.ts:45
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/async_hooks.d.ts:320
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/async_hooks.d.ts:273
  • +
  • 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
    @@ -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:76
  • 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:52
  • 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:62
  • 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:39
  • 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:195
  • +
  • Defined in src/pools/abstract-pool.ts:185
  • +
  • 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:386
  • +
  • Defined in src/pools/cluster/fixed.ts:93
  • +
  • Defined in src/pools/abstract-pool.ts:375
  • +
  • Defined in src/pools/abstract-pool.ts:419
  • +
  • Defined in src/pools/abstract-pool.ts:481
  • +
  • Defined in src/pools/cluster/fixed.ts:88
  • +
  • Defined in src/pools/abstract-pool.ts:338
  • +
  • Defined in src/pools/cluster/fixed.ts:69
  • +
  • Defined in src/pools/abstract-pool.ts:254
  • +
  • Defined in src/pools/abstract-pool.ts:307
  • +
  • Defined in src/pools/abstract-pool.ts:298
  • +
  • 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:266
  • +
  • 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:504
  • +
  • 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
    @@ -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:76
  • 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:78
  • 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:52
  • 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:62
  • 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:39
  • 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:195
  • +
  • Defined in src/pools/abstract-pool.ts:185
  • +
  • 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:386
  • +
  • Defined in src/pools/thread/fixed.ts:85
  • +
  • Defined in src/pools/abstract-pool.ts:375
  • +
  • Defined in src/pools/abstract-pool.ts:419
  • +
  • Defined in src/pools/abstract-pool.ts:481
  • +
  • Defined in src/pools/thread/fixed.ts:78
  • +
  • Defined in src/pools/abstract-pool.ts:338
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • +
  • Defined in src/pools/abstract-pool.ts:254
  • +
  • Defined in src/pools/abstract-pool.ts:307
  • +
  • Defined in src/pools/abstract-pool.ts:298
  • +
  • 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:266
  • +
  • Defined in src/pools/abstract-pool.ts:218
  • +
  • Defined in src/pools/abstract-pool.ts:244
  • +
  • Defined in src/pools/abstract-pool.ts:360
  • +
  • Defined in src/pools/abstract-pool.ts:504
  • +
  • Defined in src/pools/abstract-pool.ts:77
  • numberOfWorkers: number
    @@ -159,7 +159,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:76
  • 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:52
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -189,7 +189,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:62
  • workerNodes: WorkerNode<Worker, Data>[] = []
    @@ -197,7 +197,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:39
  • 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:195
  • +
  • Defined in src/pools/abstract-pool.ts:185
  • +
  • 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:386
  • +
  • Defined in src/pools/cluster/fixed.ts:93
  • +
  • Defined in src/pools/abstract-pool.ts:375
  • +
  • Defined in src/pools/abstract-pool.ts:419
  • +
  • Defined in src/pools/abstract-pool.ts:481
  • +
  • Defined in src/pools/cluster/fixed.ts:88
  • +
  • Defined in src/pools/abstract-pool.ts:338
  • +
  • Defined in src/pools/cluster/fixed.ts:69
  • +
  • Defined in src/pools/abstract-pool.ts:254
  • +
  • Defined in src/pools/abstract-pool.ts:307
  • +
  • Defined in src/pools/abstract-pool.ts:298
  • +
  • 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:266
  • +
  • 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:504
  • +
  • Defined in src/pools/abstract-pool.ts:77
  • numberOfWorkers: number
    @@ -159,7 +159,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:76
  • opts: PoolOptions<ThreadWorkerWithMessageChannel>
    @@ -167,7 +167,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:78
  • promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    @@ -180,7 +180,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:52
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    @@ -189,7 +189,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:62
  • workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    @@ -197,7 +197,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:39
  • 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:195
  • +
  • Defined in src/pools/abstract-pool.ts:185
  • +
  • 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:386
  • +
  • Defined in src/pools/thread/fixed.ts:85
  • +
  • Defined in src/pools/abstract-pool.ts:375
  • +
  • Defined in src/pools/abstract-pool.ts:419
  • +
  • Defined in src/pools/abstract-pool.ts:481
  • +
  • Defined in src/pools/thread/fixed.ts:78
  • +
  • Defined in src/pools/abstract-pool.ts:338
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • +
  • Defined in src/pools/abstract-pool.ts:254
  • +
  • Defined in src/pools/abstract-pool.ts:307
  • +
  • Defined in src/pools/abstract-pool.ts:298
  • +
  • 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:266
  • +
  • Defined in src/pools/abstract-pool.ts:218
  • +
  • Defined in src/pools/abstract-pool.ts:244
  • +
  • Defined in src/pools/abstract-pool.ts:360
  • +
  • Defined in src/pools/abstract-pool.ts:504
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:327
  • Methods

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

    Returns PoolEmitter

    +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:354
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:610
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:673
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:526
  • Returns number

    +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:620
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:539
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:499
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:385
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:414
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:638
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:654
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:569
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:510
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:494
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:520
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:299
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:271
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:254
  • @@ -698,7 +704,7 @@ special handling:

    Returns Promise<any[]>

  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:195
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/events.d.ts:317
  • +
  • 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

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

    +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/async_hooks.d.ts:315
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/async_hooks.d.ts:288
  • +
  • Defined in src/worker/abstract-worker.ts:156
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/async_hooks.d.ts:311
  • +
  • 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 node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/async_hooks.d.ts:303
  • +
  • Defined in src/worker/thread-worker.ts:39
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/async_hooks.d.ts:320
  • +
  • Defined in node_modules/.pnpm/@types+node@18.16.0/node_modules/@types/node/async_hooks.d.ts:273
  • 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:105
  • +
  • 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: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: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:14
  • +
  • Defined in src/pools/worker.ts:27
  • +
  • Defined in src/pools/worker.ts:6
  • +
  • Defined in src/pools/worker.ts:22
  • +
  • Defined in src/utility-types.ts:58
  • +
  • Defined in src/utility-types.ts:48