MCPcopy Create free account
hub / github.com/arctic-cli/interface / next

Method next

packages/arctic/src/util/queue.ts:11–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 }
10
11 async next(): Promise<T> {
12 if (this.queue.length > 0) return this.queue.shift()!
13 return new Promise((resolve) => this.resolvers.push(resolve))
14 }
15
16 async *[Symbol.asyncIterator]() {
17 while (true) yield await this.next()

Callers 7

NearestRootFunction · 0.45
server.tsFile · 0.45
fromDirectoryFunction · 0.45
fetchFunction · 0.45
callTuiFunction · 0.45
tui.tsFile · 0.45

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected