Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode
/ fail
Function
fail
packages/desktop/src/main/server.ts:92–97 ·
view source on GitHub ↗
(error: Error)
Source
from the content-addressed store, hash-verified
90
let
timeout: NodeJS.Timeout
91
92
const
fail = (error: Error) => {
93
if
(done)
return
94
done = true
95
cleanup()
96
reject(error)
97
}
98
99
const
refreshTimeout = () => {
100
clearTimeout(timeout)
Callers
3
refreshTimeout
Function · 0.70
onMessage
Function · 0.70
onExit
Function · 0.70
Calls
2
cleanup
Function · 0.70
reject
Function · 0.50
Tested by
no test coverage detected