MCPcopy
hub / github.com/spacecloud-io/space-cloud / Notify

Method Notify

runner/utils/debounce.go:59–68  ·  view source on GitHub ↗

Notify signals all interested callers that the event is completed

(err error)

Source from the content-addressed store, hash-verified

57
58// Notify signals all interested callers that the event is completed
59func (a *DebounceArray) Notify(err error) {
60 a.lock.Lock()
61 defer a.lock.Unlock()
62
63 for _, ch := range a.array {
64 ch <- err
65 }
66
67 a.array = []chan error{}
68}

Callers 1

WaitMethod · 0.45

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected