MCPcopy Create free account
hub / github.com/codehamr/codehamr / drain

Function drain

internal/tui/tui_test.go:2737–2766  ·  view source on GitHub ↗

drain advances the model until no async commands remain, a synchronous bubbletea mini-runtime. tea.BatchMsg arrives when Update wraps multiple Cmds (e.g. tea.Println from the outbox + the handler's own Cmd); each child runs, its result feeds back through Update, and any new Cmd is queued.

(m tea.Model, cmd tea.Cmd)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 1

UpdateMethod · 0.45

Tested by

no test coverage detected