The process - deep dive into Elixir processes

True, but there are also some conventions one should follow:

  • This MFA shall be named start_link
  • start_link shall spawn_link to another MFA, usually called init
  • init shall call exit(:shutdown) if it ever wants to exit on its own.
  • a child_spec/1 function will make life easier for integration into a supervision tree.