class EventEmitter::Base(EventType, ListenerArgType)

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.cr

Instance Method Summary

Instance Method Detail

def emit(event, arg = nil) #

[View source]
def on(event, block : T -> ) forall T #

[View source]
def on(event, &block) #

[View source]
def once(event, block : T -> ) forall T #

[View source]
def once(event, &block) #

[View source]