Handler for a single, specific event T. Receives only that event's payload
(TEventMap[T]). This is the handler shape accepted by Bus.on and
Bus.once.
Declared via the bivarianceHack indirection so the payload parameter is
bivariant; this lets a Bus over a wider event map satisfy a view over a
narrower one.
Handler for a single, specific event
T. Receives only that event's payload (TEventMap[T]). This is the handler shape accepted by Bus.on and Bus.once.Declared via the
bivarianceHackindirection so the payload parameter is bivariant; this lets aBusover a wider event map satisfy a view over a narrower one.