Yeah in general if you can guarantee that the code you execute inside a task finishes within a given timeframe, then you can likely get rid of the Task.shutdown/2. On the other hand, it can also be seen as a “safety measure”, making sure that you do actually terminate potentially-stuck processes, avoiding leaks.






















