EventManager

Manages events and receivers.

Members

Functions

emit
void emit(Args args)

Emit an event.

emit
void emit(E event)

Emit an event.

hasSubscription
bool hasSubscription()

Check whether an event has any subscription at all.

isSubscribed
bool isSubscribed(IReceiver!E receiver)

Check whether a receiver class is subscribed to an event.

subscribe
void subscribe(IReceiver!E receiver)

Subscribe a receiver class instance to an event.

unsubscribe
void unsubscribe(IReceiver!E receiver)

Unsubscribe a receiver class instance from an event.

Meta