X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FPoolEmitter.html;h=c3e7eefbb2217c42d4619f6eb25283a43fafcfa5;hb=c7e01b67847217903200f2453a4ffd4ba6bb191a;hp=47415a98fa26c3f70b5c0a57882531cb77c3830d;hpb=120c7852afd1ce4c01bd7e70cd14eeeedda8c1e3;p=poolifier.git diff --git a/docs/classes/PoolEmitter.html b/docs/classes/PoolEmitter.html index 47415a98..c3e7eefb 100644 --- a/docs/classes/PoolEmitter.html +++ b/docs/classes/PoolEmitter.html @@ -1,4 +1,4 @@ -PoolEmitter | poolifier - v2.6.16
+PoolEmitter | poolifier - v2.6.22
  • Preparing search index...
  • -
  • The search index is not available
poolifier - v2.6.16
+
  • The search index is not available
  • poolifier - v2.6.22
    @@ -26,7 +26,7 @@
    • PoolEmitter
    +
  • Defined in src/pools/pool.ts:38
  • @@ -61,6 +61,7 @@ removeListener setMaxListeners getEventListeners +getMaxListeners listenerCount on once @@ -81,7 +82,7 @@

    Returns PoolEmitter

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:109
  • Properties

    @@ -95,7 +96,7 @@
    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:355
  • captureRejections: boolean
    @@ -107,7 +108,7 @@
    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:362
  • defaultMaxListeners: number
    @@ -138,7 +139,7 @@ Its name property is set to 'MaxListenersExceededWarning&
    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:399
  • errorMonitor: typeof errorMonitor
    @@ -151,7 +152,7 @@ regular 'error' listener is installed.

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:348
  • Methods

    @@ -185,7 +186,7 @@ regular 'error' listener is installed.

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:419
    • @@ -210,7 +211,7 @@ to each.

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:681
    • @@ -227,7 +228,7 @@ listeners. The values in the array are strings or Symbols.

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:744
  • +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:596
    • @@ -271,7 +272,7 @@ in the list of the listeners of the event.

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:690
    • @@ -292,7 +293,7 @@ in the list of the listeners of the event.

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:609
    • @@ -324,7 +325,7 @@ in the list of the listeners of the event.

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:569
    • @@ -372,7 +373,7 @@ event listener to the beginning of the listeners array.

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:451
    • @@ -418,7 +419,7 @@ event listener to the beginning of the listeners array.

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:481
    • @@ -462,7 +463,7 @@ times.

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:708
    • @@ -504,7 +505,7 @@ listener is removed, and then invoked.

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:724
    • @@ -526,7 +527,7 @@ including any wrappers (such as those created by .once()).

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:640
    • @@ -549,7 +550,7 @@ component or module (e.g. sockets or file streams).

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:580
    • @@ -603,7 +604,7 @@ recently added instance. In the example the once('ping')lis
    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:564
    • @@ -626,7 +627,7 @@ modified for this specific EventEmitter instance. The value can be
    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:590
    • @@ -653,7 +654,33 @@ event target. This is useful for debugging and diagnostic purposes.

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:296
  • +
    + +
      + +
    • +

      Returns the currently set max amount of listeners.

      +

      For EventEmitters this behaves exactly the same as calling .getMaxListeners on +the emitter.

      +

      For EventTargets this is the only way to get the max event listeners for the +event target. If the number of event handlers on a single EventTarget exceeds +the max set, the EventTarget will print a warning.

      +
      import { getMaxListeners, setMaxListeners, EventEmitter } from 'node:events';

      {
      const ee = new EventEmitter();
      console.log(getMaxListeners(ee)); // 10
      setMaxListeners(11, ee);
      console.log(getMaxListeners(ee)); // 11
      }
      {
      const et = new EventTarget();
      console.log(getMaxListeners(et)); // 10
      setMaxListeners(11, et);
      console.log(getMaxListeners(et)); // 11
      } +
      +
      +
      +

      Parameters

      +
        +
      • +
        emitter: EventEmitter | _DOMEventTarget
      +

      Returns number

      +
      +

      Since

      v19.9.0

      +
      @@ -684,7 +711,7 @@ event target. This is useful for debugging and diagnostic purposes.

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:268
    • @@ -719,7 +746,7 @@ composed of the emitted event arguments.

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:250
    • @@ -757,7 +784,7 @@ special handling:

      +
    • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:189
  • @@ -772,7 +799,7 @@ special handling:

    Returns Promise<any[]>

  • +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:190
    • @@ -797,7 +824,7 @@ special handling:

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.9/node_modules/@types/node/events.d.ts:340