MCPcopy Index your code
hub / github.com/nodejs/node / array

Function array

lib/internal/streams/iter/consumers.js:323–326  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

321 * @returns {Promise<Uint8Array[]>}
322 */
323async function array(source, options = kNullPrototype) {
324 validateConsumerOptions(options);
325 return collectAsync(source, options.signal, options.limit);
326}
327
328// =============================================================================
329// Tap Utilities

Callers 5

mainFunction · 0.50
testArrayAsyncFunction · 0.50
testArrayAsyncLimitFunction · 0.50
testAsyncValidationFunction · 0.50

Calls 2

validateConsumerOptionsFunction · 0.85
collectAsyncFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…