-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Milestone
Description
Currently, from event reactor method we can return:
EventMessage
Optional<EventMessage>
Iterable<EventMessage>
EitherOf<...>
But, to express that we want to return a pair (or triplet, or ...) of events or nothing we have now the following options:
Triplet<EventMessage,EventMessage,Nothing>
Iterable<EventMessage>
where iterable is empty when no events are emitted
The best way to express this, from my standpoint, is to have an Optional<Pair<EventMessage, EventMessage>>
that is not supported by the framework now.