X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FFixedThreadPool.html;h=eb615d40d97099f730be4848994d928482cc804e;hb=a6b5c73ccccb3ef0ccc24ad462182e3cacee77b4;hp=93b36ac679bac48e2729dc165c2e6697ed121f6b;hpb=aac8863d208eadcb0ecb33dc44d045c26f5a444f;p=poolifier.git diff --git a/docs/classes/FixedThreadPool.html b/docs/classes/FixedThreadPool.html index 93b36ac6..eb615d40 100644 --- a/docs/classes/FixedThreadPool.html +++ b/docs/classes/FixedThreadPool.html @@ -1,4 +1,4 @@ -FixedThreadPool | poolifier
+FixedThreadPool | poolifier - v2.6.9
  • Preparing search index...
  • -
  • The search index is not available
poolifier
+
  • The search index is not available
  • poolifier - v2.6.9
    @@ -17,7 +17,6 @@

    Class FixedThreadPool<Data, Response>

    A thread pool with a fixed number of threads.

    -

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

    Author

    Alessandro Pio Ardizio

    @@ -29,24 +28,24 @@
    • Data = unknown

      -

      Type of data sent to the worker. This can only be serializable data.

      +

      Type of data sent to the worker. This can only be structured-cloneable data.

    • Response = unknown

      -

      Type of execution response. This can only be serializable data.

      +

      Type of execution response. This can only be structured-cloneable data.

    Hierarchy

    +
  • Defined in src/pools/thread/fixed.ts:32
  • @@ -74,14 +73,15 @@ maxSize minSize type +utilization worker

    Methods

    +
  • Defined in src/pools/thread/fixed.ts:43
  • Properties

    @@ -154,7 +153,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:58
  • filePath: string
    @@ -163,7 +162,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:96
  • numberOfWorkers: number
    @@ -172,7 +171,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:95
  • @@ -181,10 +180,10 @@
    +
  • Defined in src/pools/thread/fixed.ts:46
  • -
    promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    +
    promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...

    The execution response promise map.

    +
  • Defined in src/pools/abstract-pool.ts:68
  • -
    workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    +
    workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>

    Worker choice strategy context referencing a worker choice algorithm implementation.

    +
  • Defined in src/pools/abstract-pool.ts:76
  • -
    workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    +
    workerNodes: IWorkerNode<Worker, Data>[] = []

    Pool worker nodes.

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

    @@ -228,7 +227,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:96
  • +
  • Defined in src/pools/abstract-pool.ts:516
  • +
  • Defined in src/pools/abstract-pool.ts:250
  • +
  • Defined in src/pools/thread/fixed.ts:91
  • +
  • Defined in src/pools/thread/fixed.ts:86
  • +
  • Defined in src/pools/thread/fixed.ts:76
  • +
    + +
    +
  • Defined in src/pools/thread/fixed.ts:81
  • Methods

    @@ -317,12 +329,12 @@ Can be overridden.

    Parameters

    @@ -330,28 +342,28 @@ Can be overridden.

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

        Function that can be hooked up when a worker has been newly created and moved to the pool worker nodes.

        -

        Can be used to update the maxListeners or binding the main-worker<->worker connection if not bind by default.

        +

        Function that can be hooked up when a worker has been newly created and moved to the pool worker nodes. +Can be overridden.

        Parameters

        Returns void

    +
  • Defined in src/pools/abstract-pool.ts:864
  • -
    - +
  • Defined in src/pools/abstract-pool.ts:620
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:942
  • +
  • Defined in src/pools/abstract-pool.ts:874
  • +
  • Defined in src/pools/thread/fixed.ts:68
  • +
  • Defined in src/pools/abstract-pool.ts:575
  • +
  • Defined in src/pools/thread/fixed.ts:57
  • +
  • Defined in src/pools/abstract-pool.ts:481
  • +
  • Defined in src/pools/abstract-pool.ts:541
  • +
  • Defined in src/pools/abstract-pool.ts:532
  • -
    - -
    +
  • Defined in src/pools/thread/fixed.ts:52
  • +
  • Defined in src/pools/thread/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:493
  • +
  • Defined in src/pools/abstract-pool.ts:451
  • +
  • Defined in src/pools/abstract-pool.ts:470
  • +
  • Defined in src/pools/abstract-pool.ts:604
  • Returns void

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

    +
  • Defined in src/pools/abstract-pool.ts:969
  • +
  • WorkerTypes
  • +
  • availableParallelism
  • Generated using TypeDoc

    \ No newline at end of file