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

Method Wait

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

Wait returns the Promise for a key. If the Promise is expired, it will be resolved, but this function will return nil

(key interface{})

Source from the content-addressed store, hash-verified

15 // Wait returns the Promise for a key.
16 // If the Promise is expired, it will be resolved, but this function will return nil
17 Wait(key interface{}) Promise
18
19 // WaitOrLock takes the lock, but only if none exists for that key.
20 // If the Promise is expired, it will successfully replace it and the previous Promise will be resolved.

Callers 6

TestCond_BroadcastFunction · 0.65
TestCond_Signal_randomFunction · 0.65
Test_lockMap_ReleaseFunction · 0.65
Test_lockMap_WaitFunction · 0.65
Test_lockMap_sweepFunction · 0.65
BenchmarkLimiterFunction · 0.65

Implementers 1

lockMaplockmap/map.go

Calls

no outgoing calls

Tested by 6

TestCond_BroadcastFunction · 0.52
TestCond_Signal_randomFunction · 0.52
Test_lockMap_ReleaseFunction · 0.52
Test_lockMap_WaitFunction · 0.52
Test_lockMap_sweepFunction · 0.52
BenchmarkLimiterFunction · 0.52