(content: string)
| 81 | |
| 82 | return { |
| 83 | write(content: string): void { |
| 84 | if (immediateMode) { |
| 85 | writeFn(content) |
| 86 | return |
| 87 | } |
| 88 | buffer.push(content) |
| 89 | bufferBytes += content.length |
| 90 | scheduleFlush() |
| 91 | if (buffer.length >= maxBufferSize || bufferBytes >= maxBufferBytes) { |
| 92 | flushDeferred() |
| 93 | } |
| 94 | }, |
| 95 | flush, |
| 96 | dispose(): void { |
| 97 | flush() |
nothing calls this directly
no test coverage detected