class

Cute::Signal

Inherits Reference / Object

Base class for Cute.signal

Instance methods

disconnect(handler_hash)

Removes the handler with the handle handler_hash.

Source
disconnect

Removes all handlers

Source
name

Returns the name of the signal, if applicable.

Source
wait

Waits for the next event and returns the signal arguments. See samples/wait.cr for a usage example.

Source

Macros

implementation(call, async)

Private-ish macro writing methods as required by Signal for a sub-class of it. call is expected to be a CallNode, and async if the signal emission shall be delivered asynchronously, or right away.

Note: You usually don't use this macro yourself. See Cute.signal instead.

Source