whenEvent

open fun whenEvent(event: Any, state: Any? = null): ExpectStage<T>