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

Method resolveNow

resolver_wrapper.go:99–106  ·  view source on GitHub ↗
(o resolver.ResolveNowOptions)

Source from the content-addressed store, hash-verified

97}
98
99func (ccr *ccResolverWrapper) resolveNow(o resolver.ResolveNowOptions) {
100 ccr.serializer.TrySchedule(func(ctx context.Context) {
101 if ctx.Err() != nil || ccr.resolver == nil {
102 return
103 }
104 ccr.resolver.ResolveNow(o)
105 })
106}
107
108// close initiates async shutdown of the wrapper. To determine the wrapper has
109// finished shutting down, the channel should block on ccr.serializer.Done()

Callers

nothing calls this directly

Calls 3

ErrMethod · 0.80
ResolveNowMethod · 0.65
TryScheduleMethod · 0.45

Tested by

no test coverage detected