ShouldWait checks atomically if the State has been set to run and if so the calling Goroutine waits until Done() has been called. You should use ShouldWait() as second case in your switch statement: switch { case hs.ShouldStart(scopeHash): // start here your process err := hs.Done(scope
(key uint64)
source not stored for this graph (policy: none)