WithTimeout returns a DialOption that configures a timeout for dialing a ClientConn initially. This is valid if and only if WithBlock() is present. Deprecated: this DialOption is not supported by NewClient. Will be supported throughout 1.x.
(d time.Duration)
| 470 | // Deprecated: this DialOption is not supported by NewClient. |
| 471 | // Will be supported throughout 1.x. |
| 472 | func WithTimeout(d time.Duration) DialOption { |
| 473 | return newFuncDialOption(func(o *dialOptions) { |
| 474 | o.timeout = d |
| 475 | }) |
| 476 | } |
| 477 | |
| 478 | // WithContextDialer returns a DialOption that sets a dialer to create |
| 479 | // connections. If FailOnNonTempDialError() is set to true, and an error is |