Copyright © 2011-2016 Garrett Smith
Behaviours: supervisor.
Authors: Garrett Smith (g@rre.tt).
See also: e2_supervisor.
e2 task supervisor.
See e2 supervisor documentation for more information.| start_link/2 | Starts a linked task supervisor. |
| start_link/3 | Starts a linked task supervisor. |
| start_task/2 | Starts a new supervised task. |
start_link(Module, ChildOrArgs) -> any()
Equivalent to start_link(Module, ChildOrArgs, []).
Starts a linked task supervisor.
start_link(Module, ChildOrArgs, Options) -> {ok, Pid} | {error, Reason}
Starts a linked task supervisor.
See e2_supervisor:start_link/3 for details on Options.
If Module exports init/1, the second argument will be passed to
init/1 when it's called. The return value from init/1 is used
as the child spec.
init/1, the second argument is the child
spec. See e2_supervisor:start_link/3 for details on ChildSpec.
start_task(Sup::Supervisor, ExtraArgs) -> {ok, Pid} | {error, Reason}
Starts a new supervised task.
ExtraArgs is a list of optional arguments to pass to the task's start function (provided in the child spec when the supervisor was started / initialized).Generated by EDoc