Module gen_errand

This module defines the gen_errand behaviour.
Required callback functions: init/1, sleep_time/2, handle_execute/1, handle_event/4.
Optional callback functions: terminate/3, code_change/4.

Data Types

errand_state()

errand_state() = idle | sleeping | executing | done

from()

from() = gen_statem:from()

server_name()

server_name() = gen_statem:server_name()

server_ref()

server_ref() = gen_statem:server_ref()

start_mon_ret()

start_mon_ret() = {ok, {pid(), reference()}} | ignore | {error, term()}

start_opt()

start_opt() = gen_statem:start_opt()

start_ret()

start_ret() = {ok, pid()} | ignore | {error, term()}

Function Index

call/2
call/3
cast/2
cooldown/5
reply/2
start/3
start/4
start_link/3
start_link/4
start_monitor/3
start_monitor/4
stop/1
stop/3
wait/2
wait/3

Function Details

call/2

call(ServerRef, Message) -> Reply

call/3

call(ServerRef, Message, Timeout) -> Reply

cast/2

cast(ServerRef, Message) -> ok

cooldown/5

cooldown(Attempt, Delay, Backoff, Growth, Jitter) -> Time

reply/2

reply(From, Message) -> ok

start/3

start(Module, Args, Opts) -> Result

start/4

start(ServerName, Module, Args, Opts) -> Result

start_link/3

start_link(Module, Args, Opts) -> Result

start_link/4

start_link(ServerName, Module, Args, Opts) -> Result

start_monitor/3

start_monitor(Module, Args, Opts) -> Result

start_monitor/4

start_monitor(ServerName, Module, Args, Opts) -> Result

stop/1

stop(ServerRef) -> ok

stop/3

stop(ServerRef, Reason, Timeout) -> ok

wait/2

wait(ServerRef, State) -> ok

wait/3

wait(ServerRef, State, Timeout) -> ok


Generated by EDoc