gen_fsm
that lets wpool_pool
control certain aspects of the execution.
Behaviours: gen_fsm.
Authors: Felipe Ripoll (ferigis@gmail.com).
gen_fsm
that lets wpool_pool
control certain aspects of the execution
from() = {pid(), reference()}
fsm_state() = atom()
state() = #state{}
age/1 | Report how old a process is in microseconds |
cast_call/3 | Equivalent to gen_fsm:send_event(Process, {sync_send_event, From, Event}). |
dispatch_state/2 | |
dispatch_state/3 | |
format_status/2 | |
handle_event/3 | |
handle_sync_event/4 | |
send_all_state_event/2 | |
send_event/2 | |
start_link/4 | Starts a named process. |
sync_send_all_state_event/2 | |
sync_send_all_state_event/3 | |
sync_send_event/2 | |
sync_send_event/3 |
age(Process::wpool:name() | pid()) -> non_neg_integer()
Report how old a process is in microseconds
cast_call(Process::wpool:name() | pid(), From::from(), Event::term()) -> ok
Equivalent to gen_fsm:send_event(Process, {sync_send_event, From, Event}).
dispatch_state(Event::term(), StateData::state()) -> {next_state, dispatch_state, state()} | {stop, term(), state()}
dispatch_state(Event::term(), From::from(), StateData::state()) -> {next_state, dispatch_state, state()} | {next_state, dispatch_state, state(), timeout()} | {reply, term(), dispatch_state, state()} | {reply, term(), dispatch_state, state(), timeout()} | {stop, term(), term(), state()} | {stop, term(), state()}
format_status(Opt::normal | terminate, X2::list()) -> term()
handle_event(Event::term(), StateName::fsm_state(), StateData::state()) -> {next_state, dispatch_state, state()} | {stop, term(), state()}
handle_sync_event(Event::term(), From::from(), StateName::fsm_state(), State::state()) -> {reply, term(), dispatch_state, state()} | {next_state, dispatch_state, state()} | {stop, term(), state()}
send_all_state_event(Process::wpool:name() | pid(), Event::term()) -> term()
send_event(Process::wpool:name() | pid(), Event::term()) -> term()
start_link(Name::wpool:name(), Module::module(), InitArgs::term(), Options::[wpool:option()]) -> {ok, pid()} | ignore | {error, {already_started, pid()} | term()}
Starts a named process
sync_send_all_state_event(Process::wpool:name() | pid(), Event::term()) -> term()
sync_send_all_state_event(Process::wpool:name() | pid(), Event::term(), Timeout::timeout()) -> term()
sync_send_event(Process::wpool:name() | pid(), Event::term()) -> term()
sync_send_event(Process::wpool:name() | pid(), Event::term(), Timeout::timeout()) -> term()
Generated by EDoc, Apr 28 2016, 11:36:37.