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

Method waitForReadLoop

tty.go:151–159  ·  view source on GitHub ↗

waitForReadLoop waits for the cancelReader to finish its read loop.

()

Source from the content-addressed store, hash-verified

149
150// waitForReadLoop waits for the cancelReader to finish its read loop.
151func (p *Program) waitForReadLoop() {
152 select {
153 case <-p.readLoopDone:
154 case <-time.After(inputReadLoopTimeout):
155 // The read loop hangs, which means the input
156 // cancelReader's cancel function has returned true even
157 // though it was not able to cancel the read.
158 }
159}
160
161// queryDrainTimeout bounds how long [Program.drainQueryReplies] waits for the
162// terminal to answer.

Callers 2

initInputReaderMethod · 0.95
releaseTerminalMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected