1 // Copyright 2013 Google Inc. All rights reserved.
2 // Use of this source code is governed by the Apache 2.0
3 // license that can be found in the LICENSE file.
7 import "golang.org/x/net/context"
9 // IsTimeoutError reports whether err is a timeout error.
10 func IsTimeoutError(err error) bool {
11 if err == context.DeadlineExceeded {
14 if t, ok := err.(interface {