Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ [Symbol.asyncIterator]
Method
[Symbol.asyncIterator]
packages/opencode/src/util/queue.ts:16–18 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
14
}
15
16
async
*[Symbol.asyncIterator]() {
17
while
(true) yield
await
this.next()
18
}
19
}
20
21
export
async
function
work<T>(concurrency: number, items: T[], fn: (item: T) => Promise<void>) {
Callers
nothing calls this directly
Calls
1
next
Method · 0.95
Tested by
no test coverage detected