()
| 609 | } |
| 610 | |
| 611 | async next(): Promise<IteratorResult<T>> { |
| 612 | if (this.count++ >= this.maxCount) { |
| 613 | return {value: null, done: true}; |
| 614 | } |
| 615 | return this.upstream.next(); |
| 616 | } |
| 617 | } |
| 618 | |
| 619 | // Note this batch just groups items into row-wise element arrays. |