onEvent

abstract fun onEvent(event: E)

Sends event to the handler registered for its exact class, which runs it as its DispatchStrategy says. It returns at once and is safe to call from any thread.

A strategy that throws does not throw from here: see DispatchStrategy.decide.

Throws

when the event has no registered handler.