upvote
In your call handlers you handle messages e.g.

def handle_cast({:increment, by}, state), do: {:noreply, state + by}

Obviously you can be as loos or rigorous as you want and go all the way up to implementing a finite state machine with aggressive guards.

You can use observer to see what's happening with various processes/actors.

reply