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

Method throw

packages/shared/src/iterator.ts:74–82  ·  view source on GitHub ↗
(err: any)

Source from the content-addressed store, hash-verified

72 }
73
74 async throw(err: any): Promise<IteratorResult<T, TReturn>> {
75 this.#isDone = true
76 if (!this.#isExecuteComplete) {
77 this.#isExecuteComplete = true
78 await this.#cleanup('throw')
79 }
80
81 throw err
82 }
83
84 /**
85 * asyncDispose symbol only available in esnext, we should fallback to Symbol.for('asyncDispose')

Callers 4

iterator.test.tsFile · 0.80
server.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected