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)

Listen to an event based on its type.

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

Listen to all events.

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

Listen to an event based on its name.

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

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

Variables

listeners
BoundEmitter[][string][EmitterOrder] listeners;

Undocumented in source.

Meta