post
Dispatches event to all registered handlers in descending priority order and returns it.
If event implements Cancellable, dispatch stops as soon as any handler sets Cancellable.isCancelled to true. Handler exceptions are routed to exceptionHandler and never propagate to the caller.
If the bus has an Executor configured and at least one handler in the dispatch list has async = true, this method blocks the calling thread until all handlers complete. This is safe with virtual-thread executors but can deadlock on bounded platform-thread pools if a handler re-entrantly posts on the same pool. Use postAsync to avoid blocking.
If the executor rejects the submitted work (e.g. it has been shut down), the rejection is routed to exceptionHandler rather than propagating to the caller. Use postAsync if you need to distinguish executor rejection from handler errors at the call site.
Return
the same event instance.