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

Function newMap

lockmap/map_test.go:47–51  ·  view source on GitHub ↗
(interval time.Duration)

Source from the content-addressed store, hash-verified

45const ttl = sweepInterval / 3
46
47func newMap(interval time.Duration) LockMap {
48 m := New(interval, &tomb.Tomb{})
49 m.Tomb().Go(m.Run)
50 return m
51}
52
53func assertResolved(promise Promise) {
54 select {

Callers 4

Test_lockMap_ReleaseFunction · 0.85
Test_lockMap_WaitFunction · 0.85
Test_lockMap_WaitOrLockFunction · 0.85
Test_lockMap_sweepFunction · 0.85

Calls 2

NewFunction · 0.70
TombMethod · 0.65

Tested by

no test coverage detected