MCPcopy Index your code
hub / github.com/codeaashu/claude-code / returnValue

Function returnValue

src/utils/generators.ts:14–22  ·  view source on GitHub ↗
(
  as: AsyncGenerator<unknown, A>,
)

Source from the content-addressed store, hash-verified

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

Callers 1

verifyApiKeyFunction · 0.85

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected