MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / setError

Method setError

pkg/web/sse/ssehandler.go:238–245  ·  view source on GitHub ↗

setError sets the error state thread-safely

(err error)

Source from the content-addressed store, hash-verified

236
237// setError sets the error state thread-safely
238func (h *SSEHandlerCh) setError(err error) {
239 h.lock.Lock()
240 defer h.lock.Unlock()
241
242 if h.err == nil {
243 h.err = err
244 }
245}
246
247// queueMessage queues an SSEMessage to be written
248func (h *SSEHandlerCh) queueMessage(msg SSEMessage) error {

Callers 1

writerLoopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected