We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e471a5a commit fef0dc0Copy full SHA for fef0dc0
internal/async/map_migratedfynedo.go
@@ -69,5 +69,7 @@ func (m *Map[K, V]) Store(key K, value V) {
69
70
// Clear removes all entries from the map.
71
func (m *Map[K, V]) Clear() {
72
- m.m = make(map[any]V)
+ for k := range m.m {
73
+ delete(m.m, k)
74
+ }
75
}
0 commit comments