(ctrl: any)
| 195 | iter = self[Symbol.asyncIterator](); |
| 196 | }, |
| 197 | async pull(ctrl: any) { |
| 198 | try { |
| 199 | const { value, done } = await iter.next(); |
| 200 | if (done) return ctrl.close(); |
| 201 | |
| 202 | const bytes = encoder.encode(JSON.stringify(value) + '\n'); |
| 203 | |
| 204 | ctrl.enqueue(bytes); |
| 205 | } catch (err) { |
| 206 | ctrl.error(err); |
| 207 | } |
| 208 | }, |
| 209 | async cancel() { |
| 210 | await iter.return?.(); |
| 211 | } |
nothing calls this directly
no outgoing calls
no test coverage detected