Search⌘ K
AI Features

Working with the New Notifications

Explore how to work with new notifications in Elixir by scheduling quizzes and testing the notification lifecycle using IEx. Understand how to monitor quiz start and stop messages through process queues to ensure correct notification delivery within OTP.

To review, rather than jumping straight into our tests with sleeps and timing dependent code, we built a quick feature that our tests can use. Other programs can take advantage of notifications too. Let’s test that theory with the iex program. We’ll fire it up with iex -S mix.

Alias

Then, type the following:

Executable

C++
alias Mastery.Examples.Math

Output

iex(1)> alias Mastery.Examples.Math
Mastery.Examples.Math

We alias the Math example to use those fields to create our quiz and templates.

Setting

...