X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIPool.html;h=c06cfb370a722aeda2e2740cfb67659e8b86d730;hb=40baeb4e66efa6646d3221029cd012fb7bda8955;hp=001e5789d57f65a4b14c07c8b9715bb446760017;hpb=3aaed019abde0022e986c1db05db9d5d7bc76594;p=poolifier.git diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html index 001e5789..c06cfb37 100644 --- a/docs/interfaces/IPool.html +++ b/docs/interfaces/IPool.html @@ -6,7 +6,7 @@ poolifier +
  • The search index is not available
  • poolifier
    @@ -34,7 +34,7 @@ +
  • Defined in src/pools/pool.ts:80
  • @@ -42,43 +42,49 @@

    Properties

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

    Type declaration

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

        Shutdowns every current worker in this pool.

        +
        +

        Returns Promise<void>

    - +
    emitter?: PoolEmitter

    Emitter on which events can be listened to.

    Events that can currently be listened to:

      -
    • 'busy'
    • +
    • 'full': Emitted when the pool is dynamic and full.
    • +
    • 'busy': Emitted when the pool is busy.
    -
    -

    Methods

    -
    - -
      - -
    • -

      Shutdowns every current worker in this pool.

      -
      -

      Returns Promise<void>

    -
    +
  • Defined in src/pools/pool.ts:89
  • +
    -
      - +
      execute: ((data: Data) => Promise<Response>)
      +
      +

      Type declaration

      +
        +
      • +
          +
        • (data: Data): Promise<Response>
        • Performs the task specified in the constructor with the data parameter.

          @@ -91,13 +97,18 @@
          data: Data

          The input for the specified task. This can only be serializable data.

      -

      Returns Promise<Response>

    -
    +
  • Defined in src/pools/pool.ts:96
  • +
    -
    +
  • Defined in src/pools/pool.ts:106
  • +
  • execute
  • +
  • setWorkerChoiceStrategy
  • Generated using TypeDoc

    \ No newline at end of file