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

Function WithBlock

dialoptions.go:370–374  ·  view source on GitHub ↗

WithBlock returns a DialOption which makes callers of Dial block until the underlying connection is up. Without this, Dial returns immediately and connecting the server happens in background. Use of this feature is not recommended. For more information, please see: https://github.com/grpc/grpc-go/

()

Source from the content-addressed store, hash-verified

368// Deprecated: this DialOption is not supported by NewClient.
369// Will be supported throughout 1.x.
370func WithBlock() DialOption {
371 return newFuncDialOption(func(o *dialOptions) {
372 o.block = true
373 })
374}
375
376// WithReturnConnectionError returns a DialOption which makes the client connection
377// return a string containing both the last connection error that occurred and

Calls 1

newFuncDialOptionFunction · 0.85