Module sidejob_supervisor

This module implements a sidejob_worker behavior that operates as a parallel, capacity-limited supervisor of dynamic, transient children.

Behaviours: gen_server.

Description

This module implements a sidejob_worker behavior that operates as a parallel, capacity-limited supervisor of dynamic, transient children.

Data Types

resource()

resource() = atom()

Function Index

code_change/3
current_usage/1
handle_call/3
handle_cast/2
handle_info/2
init/1
rate/1
spawn/2
spawn/4
start_child/4
terminate/2
which_children/1

Function Details

code_change/3

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

current_usage/1

current_usage(State) -> any()

handle_call/3

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

handle_cast/2

handle_cast(Msg, State) -> any()

handle_info/2

handle_info(Info, State) -> any()

init/1

init(X1) -> any()

rate/1

rate(State) -> any()

spawn/2

spawn(Name::resource(), Fun::function() | {module(), atom(), [term()]}) -> {ok, pid()} | {error, overload}

spawn/4

spawn(Name::resource(), Mod::module(), Fun::atom(), Args::[term()]) -> {ok, pid()} | {error, overload}

start_child/4

start_child(Name::resource(), Mod::module(), Fun::atom(), Args::term()) -> {ok, pid()} | {error, overload} | {error, term()}

terminate/2

terminate(Reason, State) -> any()

which_children/1

which_children(Name::resource()) -> [pid()]


Generated by EDoc