eventFlow

fun <T : Event> eventFlow(eventClass: Class<T>): SharedFlow<T>

Gets a SharedFlow for the given event class. The flow receives the event instances after all EventHooks are executed. So the Event.isCompleted will be true when the event is emitted.