MCPcopy
hub / github.com/wavetermdev/waveterm / Err

Method Err

pkg/web/sse/ssehandler.go:309–316  ·  view source on GitHub ↗

Err returns any error that occurred during writing

()

Source from the content-addressed store, hash-verified

307
308// Err returns any error that occurred during writing
309func (h *SSEHandlerCh) Err() error {
310 h.lock.Lock()
311 defer h.lock.Unlock()
312 if h.err == nil && h.ctx.Err() != nil {
313 h.err = h.ctx.Err()
314 }
315 return h.err
316}
317
318// RegisterOnClose registers a handler function to be called when the connection closes
319// Returns an ID that can be used to unregister the handler

Callers 15

queueMessageMethod · 0.95
requestAndWaitMethod · 0.80
RemoteStartJobCommandMethod · 0.80
WaitForRegisterMethod · 0.80
runSessionWithContextFunction · 0.80
waitForBuildDoneMethod · 0.80
runBuilderAppMethod · 0.80
getLinuxStorageBackendFunction · 0.80
readSecretsFromFileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected