A tasks supervisor.
This module defines a supervisor which can be used to dynamically
supervise tasks. Behind the scenes, this module is implemented as a
:simple_one_for_one
supervisor where the workers are temporary
(i.e. they are not restarted after they die).
The functions in this module allow tasks to be spawned and awaited
from a supervisor, similar to the functions defined in the Task
module.
Name Registration
A Task.Supervisor
is bound to the same name registration rules as a
GenServer
. Read more about it in the GenServer
docs.