Theater v0.1.0 Theater View Source

This is the main module through which you send messages to actors.

Link to this section Summary

Functions

Gets the node from list that an actor of type module with id should live on

Send message to an actor

Link to this section Functions

Link to this function get_target_node(list, module, id) View Source

Gets the node from list that an actor of type module with id should live on.

Link to this function send(module, id, message) View Source

Send message to an actor.

module must be the name of a module that implements the Theater.Actor behavior. id is any term that you want to use to identify the actor to receive the message. Actors are identified by {module, id} pairs, so actors of different module types can have the same id.