Component v0.2.2 Component.Strategy.Pooled.Supervisor View Source
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor
Callback invoked to start the supervisor and during hot code upgrades
opts is a Keyword list containing
Link to this section Functions
Link to this function
child_spec(init_arg) View Source
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
init(opts) View Source
Callback invoked to start the supervisor and during hot code upgrades.
Developers typically invoke Supervisor.init/2
at the end of their
init callback to return the proper supervision flags.
Callback implementation for Supervisor.init/1
.
Link to this function
start_link(opts) View Source
opts is a Keyword list containing:
name
: the name for this pool
worker_module
: the module containing the code for the worker_module
pool
: a specification for the pool
min
: number of prestarted workers
max
: can add upto max - min
demand-based workers