Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode
/ emit
Method
emit
packages/opencode/test/cli/cmd/tui/attention.test.ts:30–32 ·
view source on GitHub ↗
(event: FocusEvent)
Source
from the content-addressed store, hash-verified
28
}
29
30
emit(event: FocusEvent) {
31
for
(
const
listener of this.listeners[event]) listener()
32
}
33
34
listenerCount(event: FocusEvent) {
35
return
this.listeners[event].size
Callers
2
workspace.test.ts
File · 0.45
attention.test.ts
File · 0.45
Calls
1
listener
Function · 0.50
Tested by
no test coverage detected