mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: remove os.ErrTimeout
It is unclear whether the current definition of os.IsTimeout is desirable or not. Drop ErrTimeout for now so we can consider adding it (or some other error) in a future release with a corrected definition. Fixes #33411 Change-Id: I8b880da7d22afc343a08339eb5f0efd1075ecafe Reviewed-on: https://go-review.googlesource.com/c/go/+/188758 Reviewed-by: Russ Cox <rsc@golang.org> Run-TryBot: Damien Neil <dneil@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
2d1a1e0a2a
commit
0e54d28ff7
19 changed files with 8 additions and 150 deletions
|
|
@ -22,7 +22,6 @@ var (
|
|||
ErrExist = errExist() // "file already exists"
|
||||
ErrNotExist = errNotExist() // "file does not exist"
|
||||
ErrClosed = errClosed() // "file already closed"
|
||||
ErrTimeout = errTimeout() // "deadline exceeded"
|
||||
ErrNoDeadline = errNoDeadline() // "file type does not support deadline"
|
||||
)
|
||||
|
||||
|
|
@ -31,7 +30,6 @@ func errPermission() error { return oserror.ErrPermission }
|
|||
func errExist() error { return oserror.ErrExist }
|
||||
func errNotExist() error { return oserror.ErrNotExist }
|
||||
func errClosed() error { return oserror.ErrClosed }
|
||||
func errTimeout() error { return oserror.ErrTimeout }
|
||||
func errNoDeadline() error { return poll.ErrNoDeadline }
|
||||
|
||||
type timeout interface {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue