X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIPool.html;h=071c59d5926ddfbe3a763dd6300d28b8d70476e5;hb=da3098610d6cf6155bbbe53c84b6ac6ccd400ff5;hp=85ba384b9d411e1800794fdaefd237e716dd6e9e;hpb=402f08b7b31c721d9780c795e5e34a8998bc88aa;p=poolifier.git diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html index 85ba384b..071c59d5 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:66
  • @@ -56,25 +56,26 @@

    Type declaration

    • -
        -
      • (): Promise<void>
      • +
          +
        • (): Promise<void>
        • Shutdowns every current worker in this pool.

          Returns Promise<void>

    +
  • Defined in src/pools/pool.ts:86
  • 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.
    +
  • Defined in src/pools/pool.ts:75
  • execute: ((data: Data) => Promise<Response>)
    @@ -82,8 +83,8 @@

    Type declaration

    Returns Promise<Response>

    +
  • Defined in src/pools/pool.ts:82
  • -
    setWorkerChoiceStrategy: ((workerChoiceStrategy: "ROUND_ROBIN" | "LESS_RECENTLY_USED" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN") => void)
    +
    setWorkerChoiceStrategy: ((workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN") => void)

    Type declaration

    Returns void

    +
  • Defined in src/pools/pool.ts:92