MCPcopy
hub / github.com/codeaashu/claude-code / next

Function next

src/utils/generators.ts:36–46  ·  view source on GitHub ↗
(generator: AsyncGenerator<A, void>)

Source from the content-addressed store, hash-verified

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

Callers 7

allFunction · 0.85
requireAdminFunction · 0.85
requireAuthMethod · 0.85
requireAuthMethod · 0.85
requireAuthMethod · 0.85
authMiddlewareFunction · 0.85
vercelApp.tsFile · 0.85

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected