MCPcopy Create free account
hub / github.com/Shopify/goose / lockMap

Struct lockMap

lockmap/map.go:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39type lockMap struct {
40 // Use a lock and a regular map instead of a sync.Cond because some operations, like replace, are not available.
41 l sync.RWMutex
42 promises map[interface{}]*entry
43
44 sweepInterval time.Duration
45 tomb *tomb.Tomb
46}
47
48func (m *lockMap) Wait(key interface{}) Promise {
49 now := time.Now().UnixNano()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected