Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ closeCompleted
Function
closeCompleted
packages/opencode/src/plugin/openai/ws.ts:159–163 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
157
}
158
159
function
closeCompleted() {
160
cleanup()
161
controller?.enqueue(encoder.encode(
"data: [DONE]\n\n"
))
162
controller?.close()
163
}
164
165
function
invalidate(error: ProviderError.ResponseStreamError) {
166
if
(completed)
return
Callers
1
onMessage
Function · 0.85
Calls
2
cleanup
Function · 0.70
close
Method · 0.45
Tested by
no test coverage detected