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

Function cancel

packages/app/src/utils/aim.ts:26–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 const edge = props.edge ?? 18
25
26 const cancel = () => {
27 if (state.timer !== undefined) clearTimeout(state.timer)
28 state.timer = undefined
29 state.pending = undefined
30 }
31
32 const reset = () => {
33 cancel()

Callers 4

resetFunction · 0.70
activateFunction · 0.70
requestFunction · 0.70
leaveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected