MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / next

Function next

source code/utils/generators.ts:38–48  ·  view source on GitHub ↗
(generator: AsyncGenerator<A, void>)

Source from the content-addressed store, hash-verified

36 concurrencyCap = Infinity,
37): AsyncGenerator<A, void> {
38 const next = (generator: AsyncGenerator<A, void>) => {
39 const promise: Promise<QueuedGenerator<A>> = generator
40 .next()
41 .then(({ done, value }) => ({
42 done,
43 value,
44 generator,
45 promise,
46 }))
47 return promise
48 }
49 const waiting = [...generators]
50 const promises = new Set<Promise<QueuedGenerator<A>>>()
51

Callers 1

allFunction · 0.85

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected