Function fromEmitter

  • Convert node EventEmitter events to an async iterable iterator.

    Type Parameters

    • Event

    Parameters

    Returns ((type, emitter) => AsyncIterableIterator<Event>)

      • (type, emitter): AsyncIterableIterator<Event>
      • Parameters

        • type: string | symbol
        • emitter: EventEmitter

        Returns AsyncIterableIterator<Event>

Generated using TypeDoc