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

Method Len

agent/agentgit/pathstore.go:107–111  ·  view source on GitHub ↗

Len returns the number of chat IDs that have tracked paths.

()

Source from the content-addressed store, hash-verified

105
106// Len returns the number of chat IDs that have tracked paths.
107func (ps *PathStore) Len() int {
108 ps.mu.RLock()
109 defer ps.mu.RUnlock()
110 return len(ps.chatPaths)
111}
112
113// Subscribe returns a channel that receives a signal whenever
114// paths change for chatID, along with an unsubscribe function

Calls

no outgoing calls