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

Function stop

packages/opencode/src/cli/cmd/run/stream.transport.ts:408–412  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

406 abort.abort()
407 }
408 const stop = () => {
409 input.signal?.removeEventListener("abort", halt)
410 abort.abort()
411 closeStream()
412 }
413 const closeScope = () => {
414 if (closed) {
415 return Effect.void

Callers 1

closeScopeFunction · 0.70

Calls 2

closeStreamFunction · 0.85
abortMethod · 0.45

Tested by

no test coverage detected