MCPcopy
hub / github.com/minio/minio-go / Forget

Method Forget

pkg/singleflight/singleflight.go:213–217  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

TestForgetFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestForgetFunction · 0.64