* Send the DA1 sentinel. Resolves when DA1's response arrives. * * As a side effect, all queries still pending when DA1 arrives are * resolved with `undefined` (terminal didn't respond → doesn't support * the query). This is the barrier that makes send() timeout-free. * * Safe to c
()
| 168 | * Safe to call with no pending queries — still waits for a round-trip. |
| 169 | */ |
| 170 | flush(): Promise<void> { |
| 171 | return new Promise(resolve => { |
| 172 | this.queue.push({ kind: 'sentinel', resolve }) |
| 173 | this.stdout.write(SENTINEL) |
| 174 | }) |
| 175 | } |
| 176 | |
| 177 | /** |
| 178 | * Dispatch a response parsed from stdin. Called by App.tsx's |
no test coverage detected