# `Macaw.Live.Derived.Source`
[🔗](https://github.com/dcoai/macaw_live/blob/v0.1.0/lib/macaw/live/derived/source.ex#L1)

A derived source's output read as any source (spec/03 §3.1): the entry a page puts in
its surface's `sources:` for each output its derived process runs, read by that
output's source manager as any source's.

It names the process (`Macaw.Live.Derived.key/2`) and the output's path, never the
output, so its entry's digest, and so its manager, are the same for every page and
every answer. `describe/2` answers the output's schema, `supports: []`; `fetch/2`
answers the output the process last published (`Macaw.Live.Derived.output/3`); the
derived source's own fault while it is down (`{:derived, id, kind}`), so its manager is
down with the last good output it holds, which its readers draw `stale`; or `{:error,
:loading}` before its first output. It is never polled: the process announces each
change of it on its name's topic (spec/03 §7), and its manager reads it then
(`told?/1`).

# `t`

```elixir
@type t() :: %Macaw.Live.Derived.Source{
  key: Macaw.Live.Derived.key(),
  live: atom(),
  path: [String.t(), ...],
  schema: Macaw.Data.Schema.t()
}
```

# `told?`

```elixir
@spec told?(term()) :: boolean()
```

Whether a source entry is told of its changes by its owner rather than polled: a
derived source's output.

---

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