Forget tells the singleflight to forget about a key. Future calls to Do for this key will call the function rather than waiting for an earlier call to complete.
(key K)
| 211 | // to Do for this key will call the function rather than waiting for |
| 212 | // an earlier call to complete. |
| 213 | func (g *Group[K, V]) Forget(key K) { |
| 214 | g.mu.Lock() |
| 215 | delete(g.m, key) |
| 216 | g.mu.Unlock() |
| 217 | } |