MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createAbortError

Function createAbortError

sdk/src/run.ts:158–165  ·  view source on GitHub ↗
(signal?: AbortSignal)

Source from the content-addressed store, hash-verified

156}
157
158const createAbortError = (signal?: AbortSignal) => {
159 if (signal?.reason instanceof Error) {
160 return signal.reason
161 }
162 const error = new Error('Aborted')
163 error.name = 'AbortError'
164 return error
165}
166
167type RunExecutionOptions = RunOptions &
168 CodebuffClientOptions & {

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected