Use Task.Supervisor

Learn about the working of task supervisors and see what happens if there is no supervisor.

Run without a supervisor

Before we switch to EmailTaskSupervisor, let’s see what happens when an error occurs and there is no supervisor in place. We’ll simulate an error by raising an exception when we send one of our fake emails. The following changes are required in sender.ex:

Get hands-on with 1200+ tech skills courses.