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

Method snapshot

coderd/x/chatd/chatdebug/recorder.go:77–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75}
76
77func (s *attemptSink) snapshot() []Attempt {
78 s.mu.Lock()
79 defer s.mu.Unlock()
80
81 attempts := make([]Attempt, len(s.attempts))
82 copy(attempts, s.attempts)
83 return attempts
84}
85
86type attemptSinkKey struct{}
87

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45