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

Function returnValue

source code/utils/generators.ts:16–24  ·  view source on GitHub ↗
(
  as: AsyncGenerator<unknown, A>,
)

Source from the content-addressed store, hash-verified

14}
15
16export async function returnValue<A>(
17 as: AsyncGenerator<unknown, A>,
18): Promise<A> {
19 let e
20 do {
21 e = await as.next()
22 } while (!e.done)
23 return e.value
24}
25
26type QueuedGenerator<A> = {
27 done: boolean | void

Callers 1

verifyApiKeyFunction · 0.85

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected