Implementing QuizSession
Explore how to implement the QuizSession module in Elixir using GenServer. Understand how to manage quiz state, handle answering questions, and control the quiz lifecycle with precise process isolation and error handling within the OTP framework.
We'll cover the following...
We'll cover the following...
Answering a question
Now, a user can start a quiz with a start_link and a call to :select_question. What remains is to answer a question. We’ll enter ...