Wrapping Up
You’ve come a long way in this chapter.
You’ve learned about OTP Behaviours. That knowledge will stand you in good stead for the next few chapters. More importantly, it’ll come in handy whenever we’re building applications in Elixir.
We showed you how to build a custom GenServer. We drilled the pattern of client function wrapping a GenServer function, which triggers a callback, into your head. And you saw how to register names to individual GenServer processes so that they are addressable from anywhere.
The game itself has come a long way. We’ve built an interface that allows any external process to play the game. At this point, the game is nearly complete. The question we have to answer next is, what happens when things go wrong? ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access