Creating process from GenServer and passing state

Note

I just wanted to say thank you for taking the time to providing me with extra detailed information.


My understanding

I notice the main difference between the handle_info in the other thread and the one you have mention on this thread is the following:

  1. Here we are accepting any reasons for :EXIT and :DOWN.
  2. In the other post we are accepting a specific case of :EXIT and :DOWN.

Questions

  1. However, I’m still unclear as to the reason why we are not pattern matching :normal?

  2. In my case is it better to have a single task that handles all of the user submitted tasks or is it better to have a task per user submitted tasks?

Limit the amount of tasks that can be spawned to avoid exhausting the resources

  1. Also can you point me towards a resource on testing tasks and supervisor tree?

Test you supervision tree