MCPcopy Create free account
hub / github.com/subquery/subql / takeAll

Method takeAll

packages/node-core/src/utils/queues/queue.ts:62–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 takeAll(): T[] {
63 const result = this.items;
64
65 this.items = [];
66 return result;
67 }
68
69 flush(): void {
70 this.takeAll();

Callers 4

flushMethod · 0.95
flushMethod · 0.80
clearMethod · 0.80
flushSyncedBlocksMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected