wpool_fsm_process
Decorator over gen_fsm that lets wpool_pool control certain aspects of the execution.
Decorator over gen_fsm that lets wpool_pool control certain aspects of the execution
Types
from() = {pid(), reference()}
fsm_state() = atom()
state() =
#state{name = atom(),
mod = atom(),
state = term(),
options =
[{time_checker | queue_manager, atom()} |
wpool:option()],
fsm_state = fsm_state()}
Functions
start_link(Name::name() (see module wpool), Module::module(), InitArgs::term(), Options::[option() (see module wpool)]) -> {ok, pid()} | ignore | {error, {already_started, pid()} | term()}
Starts a named process
send_event(Process::name() (see module wpool) | pid(), Event::term()) -> term()
sync_send_event(Process::name() (see module wpool) | pid(), Event::term()) -> term()
sync_send_event(Process::name() (see module wpool) | pid(), Event::term(), Timeout::timeout()) -> term()
send_all_state_event(Process::name() (see module wpool) | pid(), Event::term()) -> term()
sync_send_all_state_event(Process::name() (see module wpool) | pid(), Event::term()) -> term()
sync_send_all_state_event(Process::name() (see module wpool) | pid(), Event::term(), Timeout::timeout()) -> term()
cast_call(Process::name() (see module wpool) | pid(), From::from(), Event::term()) -> ok
Equivalent to gen_fsm:send_event(Process, {sync_send_event, From, Event}).