Adding Notifications to Mastery and the Boundary
Explore how to integrate notifications into an Elixir project by modifying the quiz lifecycle events. Understand how to send notifications when a quiz starts and ends through process message passing, improving your skill in managing communication within OTP boundaries and enhancing user interaction feedback.
Adding a notification to start the quiz
Let’s add the notification to start_quiz in proctor.ex:
In start_quiz, we have two changes to make:
-
After we log the start of the quiz, we call our new
notify_startfunction, where we’ll do the notification viasend. -
Next, ...