Adding a Start Link

Let's add a start link to our dynamic supervisor along with a function to take the quiz.

Rather than starting our start_link directly, our code will use the dynamic supervisor to start the code for us.

Defining the start_link

We’ll add this code below the child_spec code in /lib/mastery/boundary/quiz_session.ex:

Get hands-on with 1200+ tech skills courses.