MCPcopy Create free account
hub / github.com/auth0/auth0-cli / Wait

Method Wait

internal/analytics/analytics.go:59–73  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

57}
58
59func (t *Tracker) Wait(ctx context.Context) {
60 ch := make(chan struct{})
61
62 go func() {
63 t.wg.Wait()
64 close(ch)
65 }()
66
67 select {
68 case <-ch: // Waitgroup is done.
69 return
70 case <-ctx.Done():
71 return
72 }
73}
74
75func (t *Tracker) track(eventName string, id string, properties map[string]string) {
76 if !shouldTrack() {

Callers 7

TestStreamFunction · 0.80
fetchTemplateDataMethod · 0.80
runNormalModeFunction · 0.80
TestFetchTemplateDataFunction · 0.80
ExecuteFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestStreamFunction · 0.64
TestFetchTemplateDataFunction · 0.64