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

Method Range

coderd/util/syncmap/map.go:75–79  ·  view source on GitHub ↗

nolint:forcetypeassert

(f func(key K, value V) bool)

Source from the content-addressed store, hash-verified

73
74//nolint:forcetypeassert
75func (m *Map[K, V]) Range(f func(key K, value V) bool) {
76 m.m.Range(func(key, value interface{}) bool {
77 return f(key.(K), value.(V))
78 })
79}

Callers 4

CollectMethod · 0.80
sweepIdleStreamsMethod · 0.80
WorkspaceTagsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected