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