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

Method Release

lockmap/map.go:90–99  ·  view source on GitHub ↗
(key interface{})

Source from the content-addressed store, hash-verified

88}
89
90func (m *lockMap) Release(key interface{}) {
91 m.l.Lock()
92 defer m.l.Unlock()
93
94 if prev, ok := m.promises[key]; ok {
95 prev.resolve()
96 }
97
98 delete(m.promises, key)
99}
100
101func (m *lockMap) Tomb() *tomb.Tomb {
102 return m.tomb

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected