I noticed that
Spervisor.Spec is deprecated. The question is, what’s the alternative for
Spuervisor.Spec.supervisor that passes 0 or more than 1 arguments to the worker/supervisor module’s
For example, prior to Elixir 1.5, I can inline the name of an Agent so that I don’t have to define that module:
import Supervisor.Spec children = [ worker(Agent, [fn ->  end, [name: MyAgent]]) ] Supervisor.start_link(children, strategy: :one_for_one)
How can I do this with the new Supervisor API since it requires to pass 2 arguments to
Agent.start_link? What if I have a module whose
start_link takes no arguments?