# `PhoenixKitAgent.Turns.Supervisor`
[🔗](https://github.com/BeamLabEU/phoenix_kit_agent/blob/v0.1.0/lib/phoenix_kit_agent/turns/supervisor.ex#L1)

The processes of the turn loop, started by the host through
`PhoenixKitAgent.children/0`:

  * `PhoenixKitAgent.Turns.Registry` — a running turn's task under its
    `turn_ref` (what "Stop" finds it by);
  * `PhoenixKitAgent.Turns.Monitor` — starts, watches and ends the turns;
  * `PhoenixKitAgent.Turns.TaskSupervisor` — the turns' tasks.

`:rest_for_one`: when the monitor goes down, the running turns go down with
it, so no turn ever runs unwatched (past its deadline, or with its locks
never released).

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
