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

Function wrapped

packages/opencode/src/plugin/tui/runtime.ts:409–414  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

407 let drop = false
408 let off = () => {}
409 const wrapped = () => {
410 if (drop) return
411 drop = true
412 off()
413 fn()
414 }
415 off = onDispose(wrapped)
416 return wrapped
417 }

Callers

nothing calls this directly

Calls 2

offFunction · 0.85
fnFunction · 0.50

Tested by

no test coverage detected