class

EventEmitter::Base(EventType, ListenerArgType)

Inherits Reference < Object

Generically typed Event Emitter. EventType is the type of event you are firing/listening on. ListenerArgType is the type of argument being passed to event listeners.

Instance methods

emit(event, arg = nil)
Source
on(event, block : T -> ) forall T
Source
on(event, &block)
Source
once(event, block : T -> ) forall T
Source
once(event, &block)
Source

Nested types