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

Function arraySync

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

* Collect all chunks as an array from a sync source. * @param {Iterable } source * @param {{ limit?: number }} [options] * @returns {Uint8Array[]}

(source, options = kNullPrototype)

Source from the content-addressed store, hash-verified

265 * @returns {Uint8Array[]}
266 */
267function arraySync(source, options = kNullPrototype) {
268 validateSyncConsumerOptions(options);
269 return collectSync(source, options.limit);
270}
271
272// =============================================================================
273// Async Consumers

Callers 4

testArraySyncBasicFunction · 0.85
testArraySyncLimitFunction · 0.85

Calls 2

collectSyncFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…