X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedThreadPool.html;h=ca1b9c965dd6487ab40d972c3c1fc84b9e705609;hb=fa6436344997918dbda3e94063b4c2e2e4a892c3;hp=a5610b1077aaed4069aa78e428b9441381c65e1e;hpb=67ff85c0f9bf4f18372728327fc5373f17d9e13a;p=poolifier.git diff --git a/docs/classes/FixedThreadPool.html b/docs/classes/FixedThreadPool.html index a5610b10..ca1b9c96 100644 --- a/docs/classes/FixedThreadPool.html +++ b/docs/classes/FixedThreadPool.html @@ -44,7 +44,7 @@ +
  • Defined in src/pools/thread/fixed.ts:29
  • @@ -58,36 +58,32 @@

    Properties

    Accessors

    Methods

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

    emitter?: PoolEmitter
    -

    {@inheritDoc}

    -
    +
  • Defined in src/pools/abstract-pool.ts:32
  • filePath: string
    @@ -148,15 +144,7 @@
    -
    - -
    nextMessageId: number = 0
    -

    Id of the next message.

    -
    +
  • Defined in src/pools/abstract-pool.ts:67
  • numberOfWorkers: number
    @@ -164,7 +152,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:66
  • opts: PoolOptions<ThreadWorkerWithMessageChannel>
    @@ -172,45 +160,37 @@
    -
    - -
    promiseMap: Map<number, PromiseWorkerResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    -

    The promise map.

    +
  • Defined in src/pools/abstract-pool.ts:68
  • +
    + +
    promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    +

    The promise response map.

    -

    When we receive a message from the worker we get a map entry and resolve/reject the promise based on the message.

    +

    When we receive a message from the worker we get a map entry with the promise resolve/reject bound to the message.

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

    Worker choice strategy instance implementing the worker choice algorithm.

    -

    Default to a strategy implementing a round robin algorithm.

    +

    Worker choice strategy context referencing a worker choice algorithm implementation.

    +

    Default to a round robin algorithm.

    +
  • Defined in src/pools/abstract-pool.ts:52
  • -
    workers: ThreadWorkerWithMessageChannel[] = []
    -

    {@inheritDoc}

    -
    -
    - -
    workersTasksUsage: Map<ThreadWorkerWithMessageChannel, TasksUsage> = ...
    -

    {@inheritDoc}

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

    @@ -218,40 +198,51 @@
    -
    - -
    +
    + +
    +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:163
  • +
  • Defined in src/pools/thread/fixed.ts:95
  • Methods

    -
    - +
    +
      - +
    • Hook executed after the worker task promise resolution. Can be overridden.

      @@ -260,24 +251,24 @@ Can be overridden.

      Parameters

      Returns void

    +
  • Defined in src/pools/abstract-pool.ts:281
  • -
    - +
  • Defined in src/pools/thread/fixed.ts:85
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:270
  • +
  • Defined in src/pools/abstract-pool.ts:310
  • +
  • Defined in src/pools/abstract-pool.ts:356
  • +
  • Defined in src/pools/thread/fixed.ts:78
  • +
  • Defined in src/pools/abstract-pool.ts:233
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • -
    - -
    -
    - +
  • Defined in src/pools/abstract-pool.ts:217
  • +
    +
    -
    - -
    -
    - -
    -
    - +
  • Defined in src/pools/abstract-pool.ts:210
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:202
  • +
  • Defined in src/pools/thread/fixed.ts:49
  • +
  • Defined in src/pools/abstract-pool.ts:479
  • +
  • Defined in src/pools/thread/fixed.ts:62
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:178
  • +
  • Defined in src/pools/abstract-pool.ts:255
  • +
  • Defined in src/pools/abstract-pool.ts:385