StatifierUI.Kino.Updater (StatifierUI v0.7.0)

Copy Markdown View Source

The inspector's render loop: a GenServer registered as the shared subscriber's listener, re-rendering every frame from the subscriber's buffer on a coalesced tick (one render at most every 80 ms, however fast messages arrive). Started via Kino.start_child/1 by StatifierUI.Kino.inspect/3, and terminated with the cell - which is what detaches the inspector.

Summary

Functions

Returns a specification to start this module under a supervisor.

Renders every pane now, skipping the coalescing delay.

Moves the scrubber one step (:first, :prev, :next, :live) and re-renders immediately - a click waiting out the coalescing delay would read as a dropped click.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

refresh(server)

@spec refresh(GenServer.server()) :: :ok

Renders every pane now, skipping the coalescing delay.

scrub(server, move)

@spec scrub(GenServer.server(), :live | :first | :prev | :next) :: :ok

Moves the scrubber one step (:first, :prev, :next, :live) and re-renders immediately - a click waiting out the coalescing delay would read as a dropped click.