(listener: () => void)
| 46 | // concerns. |
| 47 | let unexpectedExitListener: (() => void) | null = null; |
| 48 | export const onUnexpectedSidecarExit = (listener: () => void) => { |
| 49 | unexpectedExitListener = listener; |
| 50 | }; |
| 51 | |
| 52 | /** Buffer chunked output into whole lines before handing them to `write`. */ |
| 53 | const makeLineSplitter = (write: (line: string) => void) => { |