MCPcopy Create free account
hub / github.com/middleapi/orpc / return

Method return

packages/shared/src/iterator.ts:64–72  ·  view source on GitHub ↗
(value?: any)

Source from the content-addressed store, hash-verified

62 }
63
64 async return(value?: any): Promise<IteratorResult<T, TReturn>> {
65 this.#isDone = true
66 if (!this.#isExecuteComplete) {
67 this.#isExecuteComplete = true
68 await this.#cleanup('return')
69 }
70
71 return { done: true, value }
72 }
73
74 async throw(err: any): Promise<IteratorResult<T, TReturn>> {
75 this.#isDone = true

Callers 15

mapEventIteratorFunction · 0.80
consumeEventIteratorFunction · 0.80
retry.test.tsFile · 0.80
initMethod · 0.80
cancelFunction · 0.80
publisher.test.tsFile · 0.80
toBatchResponseFunction · 0.80
parseBatchResponseFunction · 0.80
response.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected