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

Function WaitForReady

rpc_util.go:341–343  ·  view source on GitHub ↗

WaitForReady configures the RPC's behavior when the client is in TRANSIENT_FAILURE, which occurs when all addresses fail to connect. If waitForReady is false, the RPC will fail immediately. Otherwise, the client will wait until a connection becomes available or the RPC's deadline is reached. By d

(waitForReady bool)

Source from the content-addressed store, hash-verified

339//
340// By default, RPCs do not "wait for ready".
341func WaitForReady(waitForReady bool) CallOption {
342 return FailFastCallOption{FailFast: !waitForReady}
343}
344
345// FailFast is the opposite of WaitForReady.
346//

Callers 15

mainFunction · 0.92
TestReflectionEnd2endMethod · 0.92
mainFunction · 0.92
callRemoteBalancerMethod · 0.92

Calls

no outgoing calls