ExPool v0.1.1 ExPool.State.Factory.Supervisor

Supervisor of the workers.

Summary

Functions

Starts a new worker

Creates a new supervisor

Stops a worker

Functions

start_child(sup)

Specs

start_child(supervisor :: pid) :: Supervisor.on_start_child

Starts a new worker

start_link(worker_mod, opts \\ [])

Specs

start_link(worker_mod :: atom, opts :: [Keyword]) :: Supervisor.on_start

Creates a new supervisor.

It receives as arguments the worker module, and a Keyword list of options that will be passed to Supervisor.start_link/3.

stop_child(sup, worker)

Specs

stop_child(supervisor :: pid, worker :: pid) :: Supervisor.on_start_child

Stops a worker