Grains v0.2.0 Grains.Supervisor
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Retrieve the bread supervisor.
Retrieve the root bread name.
Callback invoked to start the supervisor and during hot code upgrades.
Retrieve the id and registered name of currently running grains.
Link to this section Types
Link to this section Functions
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
get_bread_supervisor(supervisor)
Retrieve the bread supervisor.
Crashes if :bread_supervisor
is not started.
get_root_name(supervisor)
Retrieve the root bread name.
This function assumes that the supervisor has a registered name.
init(list)
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
.
start_link(recipe, grains, default_grains \\ Grains.default_grains())
which_grains(supervisor)
Retrieve the id and registered name of currently running grains.