Timeout implements the Timeout behavior of the net.Error interface. This allows for checks like: if x, ok := err.(interface{ Timeout() bool }); ok && x.Timeout() {
()
| 1685 | // |
| 1686 | // if x, ok := err.(interface{ Timeout() bool }); ok && x.Timeout() { |
| 1687 | func (e *timeoutError) Timeout() bool { |
| 1688 | return true |
| 1689 | } |
| 1690 | |
| 1691 | // ErrTimeout is returned from timed out calls. |
| 1692 | var ErrTimeout = &timeoutError{} |
no outgoing calls
no test coverage detected