jmap-kit
    Preparing search index...
    • Create a safe event emitter function that wraps an external emitter implementation. The returned function wraps the emitter in try/catch to prevent errors in the emitter from affecting the application.

      Parameters

      • getCurrentEmitter: () => EventEmitterFn | undefined

        A function that returns the current emitter implementation

      Returns EventEmitterFn

      A safe event emitter function