class EventEmitter::Base(EventType, ListenerArgType)
- EventEmitter::Base(EventType, ListenerArgType)
- Reference
- Object
Overview
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.
Defined in:
event_emitter/base.crInstance Method Summary
- #emit(event, arg = nil)
- #on(event, block : T -> ) forall T
- #on(event, &block)
- #once(event, block : T -> ) forall T
- #once(event, &block)