X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=de2edc9d8649f9a8a2c83a1386b686ddedd67699;hb=8d98e603c79d8d00b2b6a33e5f732701a7466234;hp=02db47b5bcc24a322c2626872cee8701ae48f47e;hpb=2946f23da560702e3f3631887e1eeb88777bd47d;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index 02db47b5..de2edc9d 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -24,9 +24,9 @@ When the maximum number of threads is reached and workers are busy, an event is

Since

0.0.1

-
+

Type Parameters

-
+
  • Defined in src/pools/thread/dynamic.ts:15
  • @@ -55,10 +55,10 @@ When the maximum number of threads is reached and workers are busy, an event is

    Properties

    emitter? -filePath -max -numberOfWorkers -opts +filePath +max +numberOfWorkers +opts promiseResponseMap workerChoiceStrategyContext workerNodes @@ -66,10 +66,12 @@ When the maximum number of threads is reached and workers are busy, an event is

    Accessors

    Methods

    @@ -102,9 +104,9 @@ When the maximum number of threads is reached and workers are busy, an event is
  • Constructs a new poolifier dynamic thread pool.

    -
    +

    Type Parameters

    -
    +
  • Defined in src/pools/thread/dynamic.ts:27
  • Properties

    @@ -142,42 +144,44 @@ When the maximum number of threads is reached and workers are busy, an event is
    • 'full': Emitted when the pool is dynamic and full.
    • 'busy': Emitted when the pool is busy.
    • +
    • 'error': Emitted when an uncaught error occurs.
    • +
    • 'taskError': Emitted when an error occurs while executing a task.
    -
    - +
  • Defined in src/pools/abstract-pool.ts:47
  • +
    +
    filePath: string

    Path to the worker file.

    -
    - +
  • 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

    Number of workers that this pool should manage.

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

    Options for the pool.

    +
  • Defined in src/pools/abstract-pool.ts:83
  • promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    @@ -190,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>
    @@ -199,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>[] = []
    @@ -207,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

    @@ -221,53 +225,75 @@ 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/thread/dynamic.ts:37
  • +
    + +

    Methods

    @@ -286,13 +312,13 @@ Can be overridden.

    The worker.

  • -
    message: MessageValue<Response, unknown>
    +
    message: MessageValue<Response, Worker | MessagePort>

    The received message.

  • 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
  • -

    Returns Promise<Response>

    +
  • Defined in src/pools/abstract-pool.ts:380
  • +
  • Defined in src/pools/abstract-pool.ts:371
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • Returns void

    Returns void

    +
  • Defined in src/pools/thread/fixed.ts:75
  • Returns void

    +
  • 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
  • +

    Returns void

    The listener function to execute when a message is received from a worker.

    +
    +
  • Defined in src/pools/abstract-pool.ts:629
  • +
  • PoolTypes
  • +
  • WorkerChoiceStrategies
  • +
  • WorkerTypes
  • Generated using TypeDoc

    \ No newline at end of file