createWithHandler

@JvmName(name = "createWithHandler")
fun createWithHandler(exceptionHandler: Consumer<Throwable>): EventBus

Java-friendly overload of createWithHandler accepting java.util.function.Consumer so Java callers avoid Unit boilerplate:

EventBus bus = EventBus.createWithHandler(t -> System.err.println(t.getMessage()));