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

Method readLoop

tty.go:97–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95}
96
97func (p *Program) readLoop() {
98 defer close(p.readLoopDone)
99
100 if err := p.inputScanner.StreamEvents(p.ctx, p.msgs); err != nil {
101 select {
102 case <-p.ctx.Done():
103 return
104 case p.errs <- err:
105 }
106 }
107}
108
109// waitForReadLoop waits for the cancelReader to finish its read loop.
110func (p *Program) waitForReadLoop() {

Callers 1

initInputReaderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected