Emitter

Event emitter which allows the emission and subscription of events.

Members

Functions

emit
void emit(T obj)

Emit an event.

listen
EventListener listen(void delegate(T) f, EmitterOrder order = EmitterOrder.UNSPECIFIED)

Listen to an event based on its type.

listenAll
AllEventListener listenAll(void delegate(string, Variant) f, EmitterOrder order = EmitterOrder.UNSPECIFIED)

Listen to all events.

listenRaw
EventListener listenRaw(string event, void delegate(Variant) f, EmitterOrder order = EmitterOrder.UNSPECIFIED)

Listen to an event based on its name.

on
EventListener on(string event, void delegate() f, EmitterOrder order = EmitterOrder.UNSPECIFIED)

Listen to an event by string, ignoring the actual event in the callback.

Meta