MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / createAbortController

Function createAbortController

source code/utils/abortController.ts:18–24  ·  view source on GitHub ↗
(
  maxListeners: number = DEFAULT_MAX_LISTENERS,
)

Source from the content-addressed store, hash-verified

16 * @returns AbortController with configured listener limit
17 */
18export function createAbortController(
19 maxListeners: number = DEFAULT_MAX_LISTENERS,
20): AbortController {
21 const controller = new AbortController()
22 setMaxListeners(maxListeners, controller.signal)
23 return controller
24}
25
26/**
27 * 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