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.
A function that returns the current emitter implementation
A safe event emitter function
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.