logoalt Hacker News

ch4s3 • yesterday at 2:45 PM • 0 replies • view on HN

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.