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

Function deepestCall

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

Source from the content-addressed store, hash-verified

364
365 describe('nested function abort propagation', () => {
366 async function deepestCall(signal: { aborted: boolean }): Promise<PromptResult<number>> {
367 if (signal.aborted) {
368 return promptAborted('Aborted at deepest level')
369 }
370 return promptSuccess(42)
371 }
372
373 async function middleCall(signal: { aborted: boolean }): Promise<PromptResult<string>> {
374 const result = await deepestCall(signal)

Callers 1

middleCallFunction · 0.85

Calls 2

promptAbortedFunction · 0.90
promptSuccessFunction · 0.90

Tested by

no test coverage detected