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/
()
| 368 | // Deprecated: this DialOption is not supported by NewClient. |
| 369 | // Will be supported throughout 1.x. |
| 370 | func 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 |