EquivalentEventLambda

constructor(eventHandler: EventHandler<E>, returnsUnit: Boolean)

Parameters

eventHandler

the real handler from the on<Event>(c) factory; the single source of truth for dispatch and equivalence.

returnsUnit

whether the underlying event method returns Unit (void); when true invoke returns Unit rather than the dispatch result (which is null for void events).