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

Method Add

runner/utils/debounce.go:50–56  ·  view source on GitHub ↗

Add adds a new caller to the wait list

(ch chan error)

Source from the content-addressed store, hash-verified

48
49// Add adds a new caller to the wait list
50func (a *DebounceArray) Add(ch chan error) int {
51 a.lock.Lock()
52 defer a.lock.Unlock()
53
54 a.array = append(a.array, ch)
55 return len(a.array)
56}
57
58// Notify signals all interested callers that the event is completed
59func (a *DebounceArray) Notify(err error) {

Callers 15

WaitMethod · 0.80
GetFunction · 0.80
MakeHTTPRequestMethod · 0.80
GetLogsMethod · 0.80
processIntentsMethod · 0.80
processStagedEventsMethod · 0.80
HandleRealtimeEventMethod · 0.80
dataLoaderBatchFnMethod · 0.80
Test_makeQueryArgumentsFunction · 0.80
MakeHTTPRequestFunction · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 2

Test_makeQueryArgumentsFunction · 0.64