Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/anomalyco/opencode
/ cleanup
Function
cleanup
packages/opencode/test/server/global-bus.ts:10–10 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
8
}) {
9
return
Effect.callback<GlobalEvent, unknown>((resume) => {
10
const
cleanup = () => GlobalBus.off(
"event"
, handler)
11
12
const
handler = (event: GlobalEvent) => {
13
try {
Callers
1
handler
Function · 0.70
Calls
1
off
Method · 0.80
Tested by
no test coverage detected