Module wpool_process

Decorator over gen_server that lets wpool_pool control certain aspects of the execution.

Behaviours: gen_server.

Authors: Fernando Benavides (elbrujohalcon@inaka.net).

Description

Decorator over gen_server that lets wpool_pool control certain aspects of the execution

Data Types

options()

options() = [{time_checker | queue_manager, atom()} | wpool:option()]

Function Index

call/3Equivalent to gen_server:call(Process, Call, Timeout).
cast/2Equivalent to gen_server:cast(Process, {cast, Cast}).
send_request/2Equivalent to gen_server:send_request(Process, Request).
start_link/4Starts a named process.

Function Details

call/3

call(Process::wpool:name() | pid(), Call::term(), Timeout::timeout()) -> term()

Equivalent to gen_server:call(Process, Call, Timeout).

cast/2

cast(Process::wpool:name() | pid(), Cast::term()) -> ok

Equivalent to gen_server:cast(Process, {cast, Cast}).

send_request/2

send_request(Name::wpool:name() | pid(), Request::term()) -> term()

Equivalent to gen_server:send_request(Process, Request).

start_link/4

start_link(Name::wpool:name(), Module::module(), InitArgs::term(), Options::options()) -> {ok, pid()} | ignore | {error, {already_started, pid()} | term()}

Starts a named process


Generated by EDoc