eachEvent
suspend fun <S, E : Any, C : SubscriptionContext, R> eachEvent(stream: StateEvent<S>, type: Class<E>, context: C, handle: suspend (StateTypedEvent<S, E>, C) -> R): List<R>
Calls handle once for each event of stream that is a type, in their order, with the StateTypedEvent of that event and context seen as that call (invocationOf): its invocationKey names the event, while everything else is the stream's context. A saga's commands, those each call returns and those it calls, are told apart by the event the call was for (DerivedRequests). What each call returns, in order. The generated bindings call it, as they call requestsOf.