MCPcopy Create free account
hub / github.com/charmbracelet/bubbletea / noteQuery

Method noteQuery

tea.go:1395–1397  ·  view source on GitHub ↗

noteQuery records that a terminal query is about to be written, so its reply can be read before the terminal is handed back. See [Program.drainQueryReplies].

()

Source from the content-addressed store, hash-verified

1393// reply can be read before the terminal is handed back. See
1394// [Program.drainQueryReplies].
1395func (p *Program) noteQuery() {
1396 p.lastQuery.Store(time.Now().UnixNano())
1397}
1398
1399// flush flushes the output buffer to the program output.
1400func (p *Program) flush() error {

Callers 1

executeQueryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected