create With Handler
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()));Content copied to clipboard