module

Earl::Artist(M)

An actor-like agent. It includes the following extension modules:

  • Agent
  • Logger
  • Mailbox(M)

Artists will automatically receive messages (of type M) and dispatch them to the #call(message) method. M can be an union type and there can be as many #call(message) method overloads to handle the different message types.

Instance methods

call(message : M)
call

Dispatches messages to #call(message) until asked to stop.