MCPcopy
hub / github.com/codeaashu/claude-code / createAbortController

Function createAbortController

src/utils/abortController.ts:16–22  ·  view source on GitHub ↗
(
  maxListeners: number = DEFAULT_MAX_LISTENERS,
)

Source from the content-addressed store, hash-verified

14 * @returns AbortController with configured listener limit
15 */
16export function createAbortController(
17 maxListeners: number = DEFAULT_MAX_LISTENERS,
18): AbortController {
19 const controller = new AbortController()
20 setMaxListeners(maxListeners, controller.signal)
21 return controller
22}
23
24/**
25 * Propagates abort from a parent to a weakly-referenced child controller.

Callers 15

constructorMethod · 0.85
handleGenerateFunction · 0.85
getAttachmentsFunction · 0.85
handlePromptSubmitFunction · 0.85
executeUserInputFunction · 0.85
findAvailableIDEFunction · 0.85
spawnInProcessTeammateFunction · 0.85
runInProcessTeammateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected