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

Function dispose

packages/session-ui/src/components/markdown-worker-queue.ts:49–58  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

47 schedule()
48 },
49 dispose(key: string) {
50 const slot = slots.get(key)
51 if (slot?.request) input.supersede(slot.request)
52 if (slot) {
53 slot.request = undefined
54 slots.delete(key)
55 }
56 jobs.push({ type: "dispose", key })
57 schedule()
58 },
59 pending: () => slots.size,
60 async idle() {
61 while (running) await running

Callers

nothing calls this directly

Calls 4

pushMethod · 0.80
scheduleFunction · 0.70
getMethod · 0.65
deleteMethod · 0.45

Tested by

no test coverage detected