Rho.Supervisor (rho v0.1.0)

Copy Markdown View Source

rho's processes, for the host to start in its own tree (rho has no OTP application callback: a mob app starts its code by hand):

children = [
  {Rho.Supervisor, tools: [MyApp.Tools.Search, Rho.Tools.Todo, Rho.Tools.ReadArtifact]}
]

Starts, in order: Rho.Auth (sign-ins, token refresh), Rho.Auth.Login (the OAuth browser flow), with Dyn the approval store (Rho.Dyn.Approval.Biometric) and Rho.Dyn.Keeper, then Rho.ToolRegistry, Rho.Usage's subscriber registry, the task supervisor tools run under (Rho.TaskSup) and the loops' supervisor (Rho.LoopSup, see Rho.start_loop/1).

Options:

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts rho's tree, registered as Rho.Supervisor, with the options in the moduledoc.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

@spec start_link(keyword()) :: Supervisor.on_start()

Starts rho's tree, registered as Rho.Supervisor, with the options in the moduledoc.