* Collect all chunks as an array from a sync source. * @param {Iterable } source * @param {{ limit?: number }} [options] * @returns {Uint8Array[]}
(source, options = kNullPrototype)
| 265 | * @returns {Uint8Array[]} |
| 266 | */ |
| 267 | function arraySync(source, options = kNullPrototype) { |
| 268 | validateSyncConsumerOptions(options); |
| 269 | return collectSync(source, options.limit); |
| 270 | } |
| 271 | |
| 272 | // ============================================================================= |
| 273 | // Async Consumers |
no test coverage detected
searching dependent graphs…