* Collect all elements of this dataset into an array with prefetching 100 * elements. This is useful for testing, because the prefetch changes the * order in which the Promises are resolved along the processing pipeline. * This may help expose bugs where results are dependent on the order o
()
| 524 | * when a new stream has been obtained and fully consumed. |
| 525 | */ |
| 526 | async toArrayForTest() { |
| 527 | if (this.size === Infinity) { |
| 528 | throw new Error('Can not convert infinite data stream to array.'); |
| 529 | } |
| 530 | return (await this.iterator()).toArrayForTest(); |
| 531 | } |
| 532 | } |
| 533 | |
| 534 | /** |
nothing calls this directly
no test coverage detected
searching dependent graphs…