GtBridge.CodeMonitor (gt_bridge v0.17.1)

Copy Markdown View Source

I am the sole publisher of %ModuleEvent{kind: :recompiled} events.

I trace :code_server.try_finish_module/6 and broadcast via GtBridge.Events for every project-app module that gets loaded — regardless of who triggered the load (Code.compile_file, IEx.Helpers.recompile/0, :code.load_file/1, external save + iex> r/0, hot-reload from any tool).

The :code_server chokepoint means save handlers, refactor tools, and external IEx commands all flow through here without coordinating.

Public API

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(_)

@spec start_link(term()) :: GenServer.on_start()