MCPcopy Index your code
hub / github.com/coder/coder / settle

Method settle

coderd/x/chatd/chatloop/chatloop.go:825–833  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

823}
824
825func (g *streamSilenceGuard) settle() bool {
826 g.mu.Lock()
827 defer g.mu.Unlock()
828 if g.settled {
829 return false
830 }
831 g.settled = true
832 return true
833}
834
835func (g *streamSilenceGuard) onTimeout() {
836 if !g.settle() {

Callers 2

onTimeoutMethod · 0.95
DisarmMethod · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected