* Collect all chunks as an array from an async or sync source. * @param {AsyncIterable |Iterable } source * @param {{ signal?: AbortSignal, limit?: number }} [options] * @returns {Promise }
(source, options = kNullPrototype)
| 321 | * @returns {Promise<Uint8Array[]>} |
| 322 | */ |
| 323 | async function array(source, options = kNullPrototype) { |
| 324 | validateConsumerOptions(options); |
| 325 | return collectAsync(source, options.signal, options.limit); |
| 326 | } |
| 327 | |
| 328 | // ============================================================================= |
| 329 | // Tap Utilities |
no test coverage detected
searching dependent graphs…