eventHandlerWithReturn

inline fun <E : Any, R> eventHandlerWithReturn(noinline onEvent: (E) -> R): EventHandler<E>