Emit an event.
It will be dispatched to all receivers that subscribed to it.
@event struct MyEvent { int data; } auto em = new EventManager; auto e = MyEvent(43); em.emit(e); em.emit!MyEvent(42);
See Implementation
Emit an event.
It will be dispatched to all receivers that subscribed to it.