(stream: Stream)
| 86 | } |
| 87 | |
| 88 | function renderNextChunk(stream: Stream): string { |
| 89 | const {request, destination} = stream; |
| 90 | performWork(request); |
| 91 | startFlowing(request, destination); |
| 92 | if (destination.fatal) { |
| 93 | throw destination.error; |
| 94 | } |
| 95 | const chunk = destination.buffer; |
| 96 | destination.buffer = ''; |
| 97 | return chunk; |
| 98 | } |
| 99 | |
| 100 | function hasFinished(stream: Stream): boolean { |
| 101 | return stream.destination.done; |
nothing calls this directly
no test coverage detected