MCPcopy
hub / github.com/grpc/grpc-go / NewEvent

Function NewEvent

internal/xds/clients/internal/syncutil/event.go:59–61  ·  view source on GitHub ↗

NewEvent returns a new, ready-to-use Event.

()

Source from the content-addressed store, hash-verified

57
58// NewEvent returns a new, ready-to-use Event.
59func NewEvent() *Event {
60 return &Event{c: make(chan struct{})}
61}

Callers 6

newClientFunction · 0.92
newXDSChannelFunction · 0.92
TestEventHasFiredMethod · 0.70
TestEventDoneChannelMethod · 0.70

Calls

no outgoing calls

Tested by 4

TestEventHasFiredMethod · 0.56
TestEventDoneChannelMethod · 0.56