MCPcopy Index your code
hub / github.com/subquery/subql / putMany

Method putMany

packages/node-core/src/utils/queues/queue.ts:38–43  ·  view source on GitHub ↗
(items: T[])

Source from the content-addressed store, hash-verified

36 }
37
38 putMany(items: T[]): void {
39 if (this.freeSpace && items.length > this.freeSpace) {
40 throw new Error('Queue exceeds max size');
41 }
42 this.items.push(...items);
43 }
44
45 peek(): T | undefined {
46 return this.items[0];

Callers 4

putMethod · 0.95
rampQueue.spec.tsFile · 0.45
autoQueue.spec.tsFile · 0.45
enqueueBlocksMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected