X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedThreadPool.html;h=18916b7778b71162206b270641a5d18659a9594e;hb=57241eaecc79b3ee79731d161554d5e877a029be;hp=c94a503a31bdd7a4a161b872c6717e79eab178ef;hpb=004a8816ae9b52388de246a9c7a5184a73915ad6;p=poolifier.git diff --git a/docs/classes/FixedThreadPool.html b/docs/classes/FixedThreadPool.html index c94a503a..18916b77 100644 --- a/docs/classes/FixedThreadPool.html +++ b/docs/classes/FixedThreadPool.html @@ -18,7 +18,6 @@

A thread pool with a fixed number of threads.

It is possible to perform tasks in sync or asynchronous mode as you prefer.

-

This pool selects the threads in a round robin fashion.

Author

Alessandro Pio Ardizio

@@ -47,7 +46,7 @@
+
  • Defined in src/pools/thread/fixed.ts:45
  • @@ -82,7 +81,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:56
  • Properties

    @@ -155,7 +154,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:55
  • filePath: string
    @@ -164,7 +163,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:88
  • numberOfWorkers: number
    @@ -173,7 +172,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:87
  • opts: ThreadPoolOptions = {}
    @@ -182,7 +181,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:59
  • promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    @@ -196,17 +195,16 @@
    +
  • Defined in src/pools/abstract-pool.ts:65
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>

    Worker choice strategy context referencing a worker choice algorithm implementation.

    -

    Default to a round robin algorithm.

    +
  • Defined in src/pools/abstract-pool.ts:73
  • workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    @@ -215,7 +213,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:52
  • Accessors

    @@ -230,7 +228,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:132
  • +
  • Defined in src/pools/abstract-pool.ts:391
  • +
  • Defined in src/pools/abstract-pool.ts:240
  • +
  • Defined in src/pools/thread/fixed.ts:127
  • +
  • Defined in src/pools/thread/fixed.ts:122
  • +
  • Defined in src/pools/thread/fixed.ts:112
  • +
  • Defined in src/pools/thread/fixed.ts:117
  • Methods

    @@ -324,7 +322,7 @@ Can be overridden.

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

    The received message.

  • @@ -332,7 +330,7 @@ Can be overridden.

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

    -
    - +
  • Defined in src/pools/abstract-pool.ts:489
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:736
  • +
  • Defined in src/pools/abstract-pool.ts:703
  • +
  • Defined in src/pools/thread/fixed.ts:94
  • +
  • Defined in src/pools/abstract-pool.ts:450
  • +
  • Defined in src/pools/thread/fixed.ts:70
  • +
  • Defined in src/pools/abstract-pool.ts:356
  • +
  • Defined in src/pools/abstract-pool.ts:416
  • +
  • Defined in src/pools/abstract-pool.ts:407
  • +
  • Defined in src/pools/thread/fixed.ts:65
  • Returns void

    Returns void

    +
  • Defined in src/pools/thread/fixed.ts:86
  • @@ -583,7 +590,7 @@ Can be overridden.

    +
  • Defined in src/pools/thread/fixed.ts:78
  • +
  • Defined in src/pools/abstract-pool.ts:368
  • +
  • Defined in src/pools/abstract-pool.ts:323
  • +
  • Defined in src/pools/abstract-pool.ts:345
  • +
  • Defined in src/pools/abstract-pool.ts:473
  • Returns void

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

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