create With Handler
Creates a new EventBus with a custom exception handler.
Java-facing overload accepting Consumer to avoid Unit boilerplate. Kotlin callers use the EventBus { t -> ... } lambda overload instead.
Parameters
Invoked whenever a handler throws. Runs on the posting thread for sync handlers, or on the configured executor's thread for async handlers. If this handler itself throws, the secondary exception is printed to stderr as a last resort; it never propagates out of post/postAsync and never prevents remaining handlers from running.
Creates a new EventBus with both an async executor and a custom exception handler.
Java-facing overload accepting Consumer. Kotlin callers use the EventBus(executor) { t -> ... } lambda overload instead.
Parameters
Executor for async handlers; null disables async dispatch.
Invoked whenever a handler throws. Runs on the posting thread for sync handlers, or on the configured executor's thread for async handlers. If this handler itself throws, the secondary exception is printed to stderr as a last resort; it never propagates out of post/postAsync and never prevents remaining handlers from running.