(...nextArgs)
| 562 | |
| 563 | return { |
| 564 | async next(...nextArgs) { |
| 565 | try { |
| 566 | const result = await iterator.next(...nextArgs); |
| 567 | if (result.done) { |
| 568 | observer.closeConnection(stream); |
| 569 | } else { |
| 570 | observer.processChunk(result.value, stream); |
| 571 | } |
| 572 | return result; |
| 573 | } catch (error) { |
| 574 | observer.reportError(error); |
| 575 | throw error; |
| 576 | } |
| 577 | }, |
| 578 | async return(...returnArgs) { |
| 579 | observer.closeConnection(stream); |
| 580 | if (typeof iterator.return === 'function') { |
nothing calls this directly
no outgoing calls
no test coverage detected