Agents and Tasks

Learn about two examples of supervised processes in Elixir—agents and tasks.

Supervised processes

Processes play a crucial role in Elixir. We have seen how processes model state changes. Processes are also used to enable concurrency and provide fault tolerance.

Elixir provides two abstractions, called agents and tasks, that are specializations of those use cases. Agents and tasks are supervised processes.

Get hands-on with 1200+ tech skills courses.