CorrespondingEventsFunction
A corresponding events function that acts as a normal Function but ensures a single event type in the generic and tightens the possible exception thrown to OutsideScopeException.
Parameters
<E>
the event type.