OptionaldeliveryHow publish calls deliver events to subscribed handlers.
Defaults to "await-handlers" so local development and tests observe handler work deterministically. Use "fire-and-forget" for detached in-process delivery when the caller should not wait for listeners.
OptionalnameProvider name. Defaults to "event-bus-memory".
OptionalonCalled when an async event handler throws an error.
In "await-handlers" mode, handler errors are rethrown when this callback is not provided. In "fire-and-forget" mode, handler errors are swallowed when this callback is not provided so detached handlers do not create unhandled rejections.
The error thrown by the handler
The name of the event being handled
The event payload that was passed to the handler
Options for the in-memory event bus provider.