# `Mx.Watcher`
[🔗](https://github.com/mx-music/mx/blob/main/lib/mx/watcher.ex#L1)

Loads a song file again whenever its content changes, and hands each
version that loads to `on_song`. A version that does not load prints its
error, and the playing version stays.

It compares the content rather than the modification time, since that
time has a resolution of one second and two quick saves would look like one.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `start_link`

Starts watching the song file at `:path`, handing each version that loads to `:on_song`.

---

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