Module worker_pool

Behaviours: gen_server2.

Data Types

mfargs()

mfargs() = {atom(), atom(), [any()]}

Function Index

code_change/3
default_pool/0
dispatch_sync/1
dispatch_sync/2
handle_call/3
handle_cast/2
handle_info/2
idle/2
init/1
ready/2
start_link/1
submit/1
submit/2
submit/3
submit_async/1
submit_async/2
terminate/2

Function Details

code_change/3

code_change(OldVsn, State, Extra) -> any()

default_pool/0

default_pool() -> atom()

dispatch_sync/1

dispatch_sync(Fun::fun(() -> any()) | mfargs()) -> ok

dispatch_sync/2

dispatch_sync(Server, Fun) -> any()

handle_call/3

handle_call(Msg, From, State) -> any()

handle_cast/2

handle_cast(Msg, State) -> any()

handle_info/2

handle_info(Msg, State) -> any()

idle/2

idle(Server::atom(), WPid::pid()) -> ok

init/1

init(X1) -> any()

ready/2

ready(Server::atom(), WPid::pid()) -> ok

start_link/1

start_link(Name::atom()) -> {ok, pid()} | {error, any()}

submit/1

submit(Fun::fun(() -> A) | mfargs()) -> A

submit/2

submit(Fun::fun(() -> A) | mfargs(), ProcessModel::reuse | single) -> A

submit/3

submit(Server::atom(), Fun::fun(() -> A) | mfargs(), ProcessModel::reuse | single) -> A

submit_async/1

submit_async(Fun::fun(() -> any()) | mfargs()) -> ok

submit_async/2

submit_async(Server, Fun) -> any()

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc