MCPcopy Create free account
hub / github.com/anomalyco/opencode / onabort

Function onabort

packages/core/src/process.ts:107–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 return
106 }
107 const onabort = () => resume(Effect.fail(abortError(signal)))
108 signal.addEventListener("abort", onabort, { once: true })
109 return Effect.sync(() => signal.removeEventListener("abort", onabort))
110 })

Callers

nothing calls this directly

Calls 2

resumeFunction · 0.85
abortErrorFunction · 0.70

Tested by

no test coverage detected