subscribeAll

abstract fun subscribeAll(priority: Int, handler: (Event) -> Unit): Subscription

Registers a wildcard handler that fires for every event posted to the underlying bus, regardless of type. Returns a Subscription token for removal. Hidden from Java; Java callers use the java.util.function.Consumer overload.


open fun subscribeAll(priority: Int, handler: Consumer<Event>): Subscription

Registers a wildcard java.util.function.Consumer handler that fires for every event posted to the underlying bus. Returns a Subscription token for removal.

Java callers must pass priority explicitly (no default on the interface). Kotlin callers use the subscribeAll extension which defaults to Priority.NORMAL.

networkBus.subscribeAll(Priority.NORMAL, e -> log(e));