MCPcopy
hub / github.com/docker/docker-agent / StopAnimations

Method StopAnimations

pkg/tui/components/transcript/transcript.go:265–269  ·  view source on GitHub ↗

StopAnimations unregisters every view from the animation coordinator. Call it when the host view goes away (e.g. the embedding dialog closes) so abandoned spinners do not keep the tick stream alive; Rebuild re-arms them on the next open.

()

Source from the content-addressed store, hash-verified

263// so abandoned spinners do not keep the tick stream alive; Rebuild re-arms
264// them on the next open.
265func (t *Transcript) StopAnimations() {
266 for _, v := range t.views {
267 animation.StopView(v)
268 }
269}
270
271// Messages returns the transcript's messages, oldest first. The slice is
272// the transcript's own backing store: callers must treat it as read-only

Calls 1

StopViewFunction · 0.92