Copyright © 2011-2016 Garrett Smith
Authors: Garrett Smith ([email protected]).
e2 task behavior.
Tasks are e2_service behaviors that run actively after started.
A task may be delayed after started.
A task may repeat.
For more information see e2 tasks documentation.call/2 | Sends a message to a task and waits for a reply. |
call/3 | Sends a message to a task and waits for a reply. |
cast/2 | Sends a message to a task without waiting for a reply. |
run_once/1 | Runs the task. |
start_link/2 | Start a linked task. |
start_link/3 | Start a linked task. |
call(Task, Msg) -> any()
Equivalent to call(Task, Msg, infinity).
Sends a message to a task and waits for a reply.
call(Task, Msg, Timeout) -> Reply
Sends a message to a task and waits for a reply.
cast(Task, Msg) -> ok
Sends a message to a task without waiting for a reply.
run_once(Task) -> ok
Runs the task.
If the task is repeating, this will not cause subsequent task runs.start_link(Module, Args) -> any()
Equivalent to start_link(Module, Args, []).
Start a linked task.
start_link(Module, Args, Options) -> {ok, Pid} | {error, Reason}
Start a linked task.
Refer toe2_service:start_link/3
for details.
Generated by EDoc