waitForReadLoop waits for the cancelReader to finish its read loop.
()
| 149 | |
| 150 | // waitForReadLoop waits for the cancelReader to finish its read loop. |
| 151 | func (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. |
no outgoing calls
no test coverage detected