Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ next
Method
next
packages/opencode/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
9
[Symbol.asyncIterator]
Method · 0.95
firstEvent
Function · 0.45
readEvent
Function · 0.45
NearestRoot
Function · 0.45
StrictNearestRoot
Function · 0.45
server.ts
File · 0.45
resolveBin
Function · 0.45
nextTuiRequest
Function · 0.45
nextTuiResponse
Function · 0.45
Calls
1
push
Method · 0.80
Tested by
2
firstEvent
Function · 0.36
readEvent
Function · 0.36