MCPcopy Index your code
hub / github.com/anomalyco/opencode / handler

Function handler

packages/opencode/src/tool/shell.ts:535–535  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

533 const abort = Effect.callback<void>((resume) => {
534 if (ctx.abort.aborted) return resume(Effect.void)
535 const handler = () => resume(Effect.void)
536 ctx.abort.addEventListener("abort", handler, { once: true })
537 return Effect.sync(() => ctx.abort.removeEventListener("abort", handler))
538 })

Callers 1

clientFunction · 0.50

Calls 1

resumeFunction · 0.85

Tested by

no test coverage detected