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

Function fallbackProvider

common/src/util/__tests__/error-abort.test.ts:417–422  ·  view source on GitHub ↗
(signal: { aborted: boolean })

Source from the content-addressed store, hash-verified

415 }
416
417 async function fallbackProvider(signal: { aborted: boolean }): Promise<PromptResult<string>> {
418 if (signal.aborted) {
419 return promptAborted()
420 }
421 return promptSuccess('Fallback result')
422 }
423
424 async function callWithFallback(signal: { aborted: boolean }): Promise<PromptResult<string>> {
425 try {

Callers 1

callWithFallbackFunction · 0.85

Calls 2

promptAbortedFunction · 0.90
promptSuccessFunction · 0.90

Tested by

no test coverage detected