X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIPool.html;h=d6e44aaa5dbac3bc8406be38c9a3951c5d51c281;hb=7455be54c58f74c6f0d0dd597aa431a88da0a9d8;hp=d23fd03171e76ad157f6497c40837d45a54a118e;hpb=4736ba628fabbf7e34e36ef0f55a96e86b7033ac;p=poolifier.git diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html index d23fd031..d6e44aaa 100644 --- a/docs/interfaces/IPool.html +++ b/docs/interfaces/IPool.html @@ -1,114 +1,254 @@ -IPool | poolifier
+IPool | poolifier - v2.6.42
-
+
  • The search index is not available
  • poolifier - v2.6.42 +
    -
    +
    -

    Interface IPool<Data, Response>

    +

    Interface IPool<Worker, Data, Response>

    Contract definition for a poolifier pool.

    -
    -
    +
    +
    +

    Type Parameters

    -
    +

    Data = unknown

    +

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

    +
    +
    +
  • +

    Response = unknown

    +

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

    +
    +
  • Hierarchy

    - +

    Properties

    -
    - -
    destroy: (() => Promise<void>)
    +
    + +
    destroy: (() => Promise<void>)

    Type declaration

    • -
        -
      • (): Promise<void>
      • +
          +
        • (): Promise<void>
        • -

          Shutdowns every current worker in this pool.

          +

          Terminates all workers in this pool.

          -

          Returns Promise<void>

    -
    - -
    emitter?: PoolEmitter
    +
  • Defined in src/pools/pool.ts:235
  • +
    + +
    emitter?: PoolEmitter

    Emitter on which events can be listened to.

    Events that can currently be listened to:

    -
    +
    + +
    enableTasksQueue: ((enable, tasksQueueOptions?) => void)
    +
    +

    Type declaration

    +
    -
    - -
    execute: ((data: Data) => Promise<Response>)
    +
  • Defined in src/pools/pool.ts:266
  • +
    + +
    execute: ((data?, name?, transferList?) => Promise<Response>)

    Type declaration

    +
    + +
    hasWorkerNodeBackPressure: ((workerNodeKey) => boolean)
    +
    +

    Type declaration

    +
    +
    + +
    info: PoolInfo
    +

    Pool information.

    +
    +
    -
    - -
    setWorkerChoiceStrategy: ((workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN") => void)
    +
  • Defined in src/pools/pool.ts:190
  • +
    + +
    listTaskFunctions: (() => string[])

    Type declaration

    +
    + +
    setTasksQueueOptions: ((tasksQueueOptions) => void)
    +
    +

    Type declaration

    +
    +
    + +
    setWorkerChoiceStrategy: ((workerChoiceStrategy, workerChoiceStrategyOptions?) => void)
    +
    +

    Type declaration

    +
    -

    Returns void

    - +
    + -
    +
    +

    On This Page

    - -
    -

    Generated using TypeDoc

    -
    \ No newline at end of file +
  • destroy
  • +
  • emitter
  • +
  • enableTasksQueue
  • +
  • execute
  • +
  • hasWorkerNodeBackPressure
  • +
  • info
  • +
  • listTaskFunctions
  • +
  • setTasksQueueOptions
  • +
  • setWorkerChoiceStrategy
  • +
  • setWorkerChoiceStrategyOptions
  • +
  • workerNodes
  • + +
    +

    Generated using TypeDoc

    +
    \ No newline at end of file