(controller)
| 159 | |
| 160 | return new ReadableStream({ |
| 161 | start(controller) { |
| 162 | renderToSimpleStream(input, context, { |
| 163 | push(content) { |
| 164 | if (cancelled) return |
| 165 | if (content != null) { |
| 166 | controller.enqueue(encoder.encode(content)) |
| 167 | } else { |
| 168 | controller.close() |
| 169 | } |
| 170 | }, |
| 171 | destroy(err) { |
| 172 | controller.error(err) |
| 173 | }, |
| 174 | }) |
| 175 | }, |
| 176 | cancel() { |
| 177 | cancelled = true |
| 178 | }, |
nothing calls this directly
no test coverage detected