]> Cypherpunks repositories - gostls13.git/commit
os: add deadline methods for File type
authorIan Lance Taylor <iant@golang.org>
Tue, 17 Oct 2017 20:57:34 +0000 (13:57 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 25 Oct 2017 18:27:06 +0000 (18:27 +0000)
commit187957d37056592203fd758ae0245a28f4518122
tree2d285e4927ce8a1a030949e9819d22e3af0fe704
parent1126d1483f0397648905fcd4590ae45352cabd69
os: add deadline methods for File type

Add SetDeadline, SetReadDeadline, and SetWriteDeadline methods to os.File,
just as they exist today for the net package.

Fixes #22114

Change-Id: I4d390d739169b991175baba676010897dc8568fa
Reviewed-on: https://go-review.googlesource.com/71770
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
src/internal/poll/fd.go
src/internal/poll/fd_poll_runtime.go
src/os/error.go
src/os/file.go
src/os/file_plan9.go
src/os/file_posix.go
src/os/file_unix.go
src/os/pipe_bsd.go
src/os/pipe_freebsd.go
src/os/pipe_linux.go
src/os/timeout_test.go [new file with mode: 0644]