Listeners is a generic trait to implement listening capability on an Actor.
Use the gossip(msg) method to have it sent to the listeners.
gossip(msg)
Send Listen(self) to start listening.
Listen(self)
Send Deafen(self) to stop listening.
Deafen(self)
Send WithListeners(fun) to traverse the current listeners.
WithListeners(fun)
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.