class EventEmitter::Signal_new_listener

Defined in:

cuter.cr

Constructors

Instance Method Summary

Instance methods inherited from class Cute::Signal

disconnect(handler_hash)
disconnect
disconnect
, name : String | Nil name, wait wait

Constructor Detail

def self.new(parent : EventEmitter) #

NOTE Overriden, added @parent and @listeners1


Instance Method Detail

def emit(type : String, hash : UInt64) : Bool #

NOTE Added return value


def emit2(type : String, hash : UInt64) : Bool #

NOTE Equivalent of emit in Blessed


def name : String #
Description copied from class Cute::Signal

Returns the name of the signal, if applicable.


def new_channel : Tuple(Channel(Tuple(String, UInt64)), Cute::ConnectionHandle) #

def on(&block : Proc(String, UInt64, Bool)) : Cute::ConnectionHandle #

NOTE Added emit of new_listener


def on(sink : Cute::Sink(U)) forall U #

def parent : EventEmitter #