Supervisor.Spec.worker
You're seeing just the function
worker, go back to Supervisor.Spec module for more information.
This function is deprecated. Use the new child specifications outlined in the Supervisor module instead.
Specs
worker(module(), [term()], restart: restart(), shutdown: shutdown(), id: term(), function: atom(), modules: modules() ) :: spec()
Defines the given module as a worker which will be started
with the given arguments.
worker(ExUnit.Runner, [], restart: :permanent)By default, the function start_link is invoked on the given
module. Overall, the default values for the options are:
[
id: module,
function: :start_link,
restart: :permanent,
shutdown: 5000,
modules: [module]
]See the "Supervisor and worker options" section in the Supervisor.Spec module for more
information on the available options.