MCPcopy
hub / github.com/basecamp/once / send

Method send

integration/ui_test.go:113–117  ·  view source on GitHub ↗

send flushes any pending messages, then delivers msg to App.Update and enqueues the returned command. All App.Update calls happen on the caller's goroutine, so there is no concurrent access.

(msg tea.Msg)

Source from the content-addressed store, hash-verified

111// enqueues the returned command. All App.Update calls happen on the caller's
112// goroutine, so there is no concurrent access.
113func (d *appDriver) send(msg tea.Msg) {
114 d.flush()
115 _, cmd := d.app.Update(msg)
116 d.enqueueCmd(cmd)
117}
118
119func (d *appDriver) typeText(text string) {
120 for _, r := range text {

Callers 2

typeTextMethod · 0.95

Calls 3

flushMethod · 0.95
enqueueCmdMethod · 0.95
UpdateMethod · 0.65

Tested by

no test coverage detected