Wrapping Up
Let's wrap up the contents we've learned so far.
We'll cover the following
Elixir processes
We’ve come a long way from running synchronous code and patiently waiting for it to complete. We covered Elixir processes and used the Task
module to work concurrently and in parallel, easily avoiding timeout errors and unexpected exceptions.
Supervisors
We also learned about supervisors, which are the foundation of building fault-tolerant Elixir applications.
Limitations of the Task module
Although the Task
module is powerful and versatile, it is only useful for running one-off functions concurrently. As a result, Task
processes are short-lived and exit as soon as complete.
Get hands-on with 1300+ tech skills courses.