GenLoop v0.1.0 GenLoop behaviour
Link to this section Summary
Types
Debug options supported by the start* functions
Tuple describing the client of a call request.
pid is the PID of the caller and tag is a unique term used to identify the
call
The GenLoop name
Return values of start* functions
Option values used by the start* functions
Options used by the start* functions
The server reference
Functions
Behaves just like Kernel.send but accepts atoms or registry tuples on top of pids to identify a process
Link to this section Types
Debug options supported by the start* functions
Tuple describing the client of a call request.
pid is the PID of the caller and tag is a unique term used to identify the
call.
The GenLoop name
on_start :: {:ok, pid} | :ignore | {:error, {:already_started, pid} | term}
Return values of start* functions
option :: {:debug, debug} | {:name, name} | {:timeout, timeout} | {:spawn_opt, Process.spawn_opt}
Option values used by the start* functions
Options used by the start* functions
The server reference
Link to this section Functions
See GenServer.abcast/2.
See GenServer.abcast/3.
See GenServer.cast/2.
multi_call([node], name :: atom, term, timeout) :: {replies :: [{node, term}], bad_nodes :: [node]}
See GenServer.reply/2.
Behaves just like Kernel.send but accepts atoms or registry tuples on top of pids to identify a process.
See GenServer.stop/1.
See GenServer.stop/2.
See GenServer.stop/3.
See GenServer.whereis/1.
Link to this section Callbacks
code_change(old_vsn, state :: term, extra :: term) ::
{:ok, new_state :: term} |
{:error, reason :: term} when old_vsn: term | {:down, term}
format_status(reason, pdict_and_state :: list) :: term when reason: :normal | :terminate
init(args :: term) ::
{:ok, state} |
{:ok, state, timeout | :hibernate} |
:ignore |
{:stop, reason :: any} when state: any
terminate(reason, state :: term) :: term when reason: :normal | :shutdown | {:shutdown, term} | term