X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIPool.html;h=b81dba1f78e565d1768cfd7e580831278660bca7;hb=8bd0b5363ad2defbce7c1cc49e616c24ad135dde;hp=001e5789d57f65a4b14c07c8b9715bb446760017;hpb=881050e41e8c464ce0c3537d05898bd42ed87631;p=poolifier.git diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html index 001e5789..b81dba1f 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:53
  • @@ -42,18 +42,30 @@

    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:

    @@ -62,23 +74,16 @@
    -
    -

    Methods

    -
    - -
      - -
    • -

      Shutdowns every current worker in this pool.

      -
      -

      Returns Promise<void>

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

      Type declaration

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

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

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

      -

      Returns Promise<Response>

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

    \ No newline at end of file