module Earl::Artist(M)

Overview

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

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.

Direct including types

Defined in:

artist.cr

Instance Method Summary

Instance Method Detail

def call(message : M) #

[View source]
def call #

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


[View source]