Sends the supplied message to all current listeners using the provided sender() as sender.
Sends the supplied message to all current listeners using the provided sender() as sender.
Chain this into the receive function.
Chain this into the receive function.
def receive = listenerManagement orElse …
Listeners is a generic trait to implement listening capability on an Actor.
Use the
gossip(msg)
method to have it sent to the listeners.Send
Listen(self)
to start listening.Send
Deafen(self)
to stop listening.Send
WithListeners(fun)
to traverse the current listeners.